Dart DocumentationthreeWebGLRenderTarget

WebGLRenderTarget class

class WebGLRenderTarget extends Texture {

	num width, height;

	Vector2 offset;
	Vector2 repeat;

	bool depthBuffer,
		 stencilBuffer;

	bool generateMipmaps;

	var shareDepthFrom;

	var __webglFramebuffer; // List<WebGLFramebuffer> or WebGLFramebuffer
	var __webglRenderbuffer; // List<WebGLRenderbuffer> or WebGLRenderbuffer

	WebGLRenderTarget ( this.width, this.height, {
	  int wrapS: ClampToEdgeWrapping,
	  int wrapT: ClampToEdgeWrapping,
	  int magFilter: LinearFilter,
	  int minFilter: LinearMipMapLinearFilter,
	  int anisotropy: 1,
	  int format: RGBAFormat,
	  int type: UnsignedByteType,
	  this.depthBuffer: true,
	  this.stencilBuffer: true,
	  this.offset: null, //new Vector2( 0, 0 ),
	  this.repeat: null, //new Vector2( 1, 1 ),
	  this.generateMipmaps: true,
	  this.shareDepthFrom: null
	} ) : super(null, null, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy){
   if (offset == null) offset = new Vector2.zero();
   if (repeat == null) repeat = new Vector2( 1.0, 1.0 );
	}

	gl.Texture get __webglTexture => this["__webglTexture"];
 set __webglTexture(gl.Texture tex) { this["__webglTexture"] = tex; }

 WebGLRenderTarget clone() => new WebGLRenderTarget(
						width,
						height ,

						wrapS: this.wrapS,
						wrapT: this.wrapT,

						magFilter: this.magFilter,
						anisotropy: this.anisotropy,

						minFilter: this.minFilter,

						offset: offset.clone(),
						repeat: repeat.clone(),

						format: this.format,
						type: this.type,

						depthBuffer: this.depthBuffer,
						stencilBuffer: this.stencilBuffer,

						generateMipmaps: this.generateMipmaps,

						shareDepthFrom: this.shareDepthFrom);

}

Extends

Texture > WebGLRenderTarget

Subclasses

WebGLRenderTargetCube

Constructors

new WebGLRenderTarget(num width, num height, {int wrapS: ClampToEdgeWrapping, int wrapT: ClampToEdgeWrapping, int magFilter: LinearFilter, int minFilter: LinearMipMapLinearFilter, int anisotropy: 1, int format: RGBAFormat, int type: UnsignedByteType, bool depthBuffer: true, bool stencilBuffer: true, Vector2 offset: null, Vector2 repeat: null, bool generateMipmaps: true, shareDepthFrom: null}) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
WebGLRenderTarget ( this.width, this.height, {
	  int wrapS: ClampToEdgeWrapping,
	  int wrapT: ClampToEdgeWrapping,
	  int magFilter: LinearFilter,
	  int minFilter: LinearMipMapLinearFilter,
	  int anisotropy: 1,
	  int format: RGBAFormat,
	  int type: UnsignedByteType,
	  this.depthBuffer: true,
	  this.stencilBuffer: true,
	  this.offset: null, //new Vector2( 0, 0 ),
	  this.repeat: null, //new Vector2( 1, 1 ),
	  this.generateMipmaps: true,
	  this.shareDepthFrom: null
	} ) : super(null, null, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy){
  if (offset == null) offset = new Vector2.zero();
  if (repeat == null) repeat = new Vector2( 1.0, 1.0 );
	}

Properties

int anisotropy #

inherited from Texture
int wrapS, wrapT, magFilter, minFilter, format, type, anisotropy

bool depthBuffer #

bool depthBuffer

bool flipY #

inherited from Texture
bool flipY

int format #

inherited from Texture
int wrapS, wrapT, magFilter, minFilter, format

bool generateMipmaps #

bool generateMipmaps

num height #

num width, height

int id #

inherited from Texture
int id

var image #

inherited from Texture
var image

int magFilter #

inherited from Texture
int wrapS, wrapT, magFilter

var mapping #

inherited from Texture
var mapping

int minFilter #

inherited from Texture
int wrapS, wrapT, magFilter, minFilter

List mipmaps #

inherited from Texture
List mipmaps = []

bool needsUpdate #

inherited from Texture
bool needsUpdate

Vector2 offset #

Vector2 offset

var onUpdate #

inherited from Texture
var onUpdate

bool premultiplyAlpha #

inherited from Texture
bool premultiplyAlpha

Vector2 repeat #

Vector2 repeat

var shareDepthFrom #

var shareDepthFrom

bool stencilBuffer #

bool depthBuffer,
		 stencilBuffer

int type #

inherited from Texture
int wrapS, wrapT, magFilter, minFilter, format, type

int unpackAlignment #

inherited from Texture
int unpackAlignment = 4

num width #

num width

int wrapS #

inherited from Texture
int wrapS

int wrapT #

inherited from Texture
int wrapS, wrapT

Operators

dynamic operator [](String key) #

inherited from Texture
operator [] (String key) => _data[key];

dynamic operator []=(String key, value) #

inherited from Texture
operator []= (String key, value) => _data[key] = value;

Methods

WebGLRenderTarget clone() #

WebGLRenderTarget clone() => new WebGLRenderTarget(
						width,
						height ,

						wrapS: this.wrapS,
						wrapT: this.wrapT,

						magFilter: this.magFilter,
						anisotropy: this.anisotropy,

						minFilter: this.minFilter,

						offset: offset.clone(),
						repeat: repeat.clone(),

						format: this.format,
						type: this.type,

						depthBuffer: this.depthBuffer,
						stencilBuffer: this.stencilBuffer,

						generateMipmaps: this.generateMipmaps,

						shareDepthFrom: this.shareDepthFrom);