Name | Type | Description |
---|---|---|
gl |
WebGLRenderingContext |
The gl context for this quad to use. |
state |
object |
TODO: Description |
Members
-
the current WebGL drawing context
-
The index buffer
-
An array containing the indices of the vertices
-
The Uvs of the quad
-
The vertex array object
-
The vertex buffer
-
An array of vertices
Methods
-
Removes this quad from WebGL
-
Initialises the vaos and uses the shader.
Name Type Description shader
PIXI.Shader the shader to use
-
map (targetTextureFrame, destinationFrame)PIXI.Quad
-
Maps two Rectangle to the quad.
Name Type Description targetTextureFrame
PIXI.Rectangle the first rectangle
destinationFrame
PIXI.Rectangle the second rectangle
Returns:
Type Description PIXI.Quad Returns itself. -
upload ()PIXI.Quad
-
Binds the buffer and uploads the data
Returns:
Type Description PIXI.Quad Returns itself.