Name | Type | Default | Description |
---|---|---|---|
gl |
WebGLRenderingContext |
The current WebGL drawing context |
|
width |
number | 0 |
optional
the horizontal range of the filter |
height |
number | 0 |
optional
the vertical range of the filter |
scaleMode |
number | PIXI.settings.SCALE_MODE |
optional
See PIXI.SCALE_MODES for possible values |
resolution |
number | 1 |
optional
The current resolution / device pixel ratio |
root |
boolean | false |
optional
Whether this object is the root element or not |
Members
-
The background colour of this render target, as an array of [r,g,b,a] values
-
The stencil buffer stores masking data for the render target
-
Stores filter data for the render target
-
frame PIXI.Rectangle
-
The frame.
-
A frame buffer
-
The current WebGL drawing context.
-
projectionMatrix PIXI.Matrix
-
The projection matrix
-
The current resolution / device pixel ratio
- Default Value:
- 1
-
Whether this object is the root element or not
- Default Value:
- false
-
The scale mode.
- Default Value:
- PIXI.settings.SCALE_MODE
- See:
-
size PIXI.Rectangle
-
The size of the object as a rectangle
-
The stencil buffer stores masking data for the render target
-
The data structure for the stencil masks
-
The texture
-
transform PIXI.Matrix
-
The object's transform
Methods
-
Binds the buffers and initialises the viewport.
-
Binds the stencil buffer.
-
Updates the projection matrix based on a projection frame (which is a rectangle)
Name Type Description destinationFrame
Rectangle The destination frame.
sourceFrame
Rectangle The source frame.
-
Clears the filter texture.
Name Type Default Description clearColor
this.clearColor optional Array of [r,g,b,a] to clear the framebuffer
-
Destroys the render target.
-
Resizes the texture to the specified width and height
Name Type Description width
number the new width of the texture
height
number the new height of the texture
-
Sets the frame of the render target.
Name Type Description destinationFrame
Rectangle The destination frame.
sourceFrame
Rectangle The source frame.