ShaderProgram is an abstraction for Shaders Programs that provides, blended output, easier variable bindings and other nice features.
Destroys all webgl resources
Returns the location of a uniform or attribute.
Locations are cached
name of the variable
if true then name is assumed to be an attribute
Returns the index of a texture. Assigns id if not already assigned.
name of the texture
Runs the shader program
the texture set in which the rendering will be made
an object containing values for variables specified in the bindings
the blendMode for this render
blendValue when blendMode is
Binds an attribute buffer and sets up vertex pointer
name of the attribute
buffer to be bound
size of values
type of values
enables normalization for integers
array value stride
offset of first value
Binds given buffer as the
buffer to be bound as index
Binds value of a uniform variable in this program.
name of the uniforma variable
type of the value
value(s) to be bound