new PIXI.Quad(gl, state)
Name | Type | Description |
---|---|---|
gl |
WebGLRenderingContext |
The gl context for this quad to use. |
state |
object |
TODO: Description |
Methods
-
destroy()
-
Removes this quad from WebGL
-
Draws the quad
Returns:
Type Description PIXI.Quad Returns itself. -
initVao(shader)
-
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.