Class: Quad

PIXI. Quad

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

Maps two Rectangle to the quad

Name Type Description
rect PIXI.Rectangle

the first rectangle

rect2 PIXI.Rectangle

the second rectangle

Binds the buffer and uploads the data