Create a Program
The WTCGL Rendering context
The vertext shader
A map of attribute locations in use within the program shaders
A join of the found attributes. Used for addressing vertex array objects on the geometry.
The blend equation to use
The blend function to use
Face culling used.
The depth function to use when determinging the current pixel against the depth buffer
Whether to depth test objects in this program
Whether to write depth information
How to determine if a face is front-facing, whether it's points are drawn clockwise or counter-clockwise. Default is counter-clockwise.
The WTCGL rendering context object
The ID of the program. Simple auto-incremening. Used for identifying the program for setup.
The webgl program store
The texture unit. Used for addressing texture units in-program.
Whether to render transparency.
A map of uniform locations in use within the program shaders
The array uf uniforms for this program
Apply the program state object to the renderer
Delete the program
set the blend equation
The mode to blend when using RGB
The mode to blend when using RGBA
Set the blend function based on source and destination parameters
the source blend function
The destination blend function
OptionalsrcAlpha: numberthe source blend function for alpha blending
OptionaldstAlpha: numberthe destination blend function for alpha blending
Set up the program for use
Flip the faces, for when a mesh is scaled in teh negative
The program class prvides the rendering setup, internal logic, and state for rendering an object.