new PIXI.Quad(gl)
Helper class to create a quad
Name | Type | Description |
---|---|---|
gl |
WebGLRenderingContext |
The gl context for this quad to use. |
Members
-
colorsFloat32Array
-
The color components of the triangles
-
uvsFloat32Array
-
The Uvs of the quad
-
verticesFloat32Array
-
An array of vertices
Methods
-
map(rect, rect2)
-
Maps two Rectangle to the quad
Name Type Description rect
PIXI.Rectangle the first rectangle
rect2
PIXI.Rectangle the second rectangle
-
upload()
-
Binds the buffer and uploads the data