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