Class: Quad

Quad


new Quad(gl)

Helper class to create a quad

Parameters:
Name Type Description
gl WebGLRenderingContext

The gl context for this quad to use.

Source:

Members


colors :Float32Array

The color components of the triangles

Type:
  • Float32Array
Source:

uvs :Float32Array

The Uvs of the quad

Type:
  • Float32Array
Source:

vertices :Float32Array

An array of vertices

Type:
  • Float32Array
Source:

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

Source:

upload()

Binds the buffer and uploads the data

Source: