Class: Quad

Tiny. Quad

Helper class to create a quad

Name Type Description
gl WebGLRenderingContext

The gl context for this quad to use.

state object

TODO: Description

Members

glWebGLRenderingContext

the current WebGL drawing context

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 Tiny.Shader

the shader to use

map(targetTextureFrame, destinationFrame){Tiny.Quad}

Maps two Rectangle to the quad.

Name Type Description
targetTextureFrame Tiny.Rectangle

the first rectangle

destinationFrame Tiny.Rectangle

the second rectangle

Returns:
Type Description
Tiny.Quad Returns itself.

Binds the buffer and uploads the data

Returns:
Type Description
Tiny.Quad Returns itself.
Documentation generated by JSDoc 3.4.3 on Fri Jul 09 2021 19:32:27 GMT+0800 (CST)