CanvasGLProgram

Canvas GL program Class.

getUniformLocation(location) (static)

Get the uniform location.

Arguments:
location (String)

Location

Returns: Integer

location

getUniforms() (static)

Get the uniforms.

Returns: Object[]

Array of objects

  • name (String): variable
  • location (Integer): location marker

light(x, y, z) (static)

Lights.

Arguments:
x (Float)

X Position

y (Float)

Y Position

z (Float)

Z Position

uniform1f(location, value1, value2, value3) (static)

Perform a uniform call on 1 floats.

Arguments:
location (Integer)

Location

value1 (Float)

Value of 1

value2 (Float)

Value of 2

value3 (Float)

Value of 3

uniform1i(location, value1, value2, value3) (static)

Perform a uniform call on 1 integers.

Arguments:
location (Integer)

Location

value1 (Integer)

Value of 1

value2 (Integer)

Value of 2

value3 (Integer)

Value of 3

uniform2f(location, value1, value2, value3) (static)

Perform a uniform call on 2 floats.

Arguments:
location (Integer)

Location

value1 (Float)

Value of 1

value2 (Float)

Value of 2

value3 (Float)

Value of 3

uniform2i(location, value1, value2, value3) (static)

Perform a uniform call on 2 integers.

Arguments:
location (Integer)

Location

value1 (Integer)

Value of 1

value2 (Integer)

Value of 2

value3 (Integer)

Value of 3

uniform3f(location, value1, value2, value3) (static)

Perform a uniform call on 3 floats.

Arguments:
location (Integer)

Location

value1 (Float)

Value of 1

value2 (Float)

Value of 2

value3 (Float)

Value of 3

uniform3i(location, value1, value2, value3) (static)

Perform a uniform call on 3 integers.

Arguments:
location (Integer)

Location

value1 (Integer)

Value of 1

value2 (Integer)

Value of 2

value3 (Integer)

Value of 3


Caught a mistake or want to contribute to the documentation? Edit this page on GitHub!