Class: Quad

PIXI. Quad

Helper class to create a quad

new PIXI.Quad(gl, state)

Name Type Description
gl WebGLRenderingContext

The gl context for this quad to use.

state object

TODO: Description

Members

uvsFloat32Array

The Uvs of the quad

verticesFloat32Array

An array of vertices

Methods

Removes this quad from WebGL

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.

Binds the buffer and uploads the data

Returns:
Type Description
PIXI.Quad Returns itself.