Creates a new shader and compiles the source
the rendering context under which the shader program will be created
shader options
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 ADJUSTABLE
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 ELEMENT_ARRAY_BUFFER
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
ShaderProgram is an abstraction for Shaders Programs that provides, blended output, easier variable bindings and other nice features.