WebGLShaderManager Class
Constructor
WebGLShaderManager
(
private
-
gl
Parameters:
-
glWebGLContextthe current WebGL drawing context
Item Index
Methods
activatePrimitiveShader
()
Triggers the primitive shader
activateShader
(
-
shader
Sets-up the given shader
Parameters:
-
shaderObjectthe shader that is going to be activated
deactivatePrimitiveShader
()
Disable the primitive shader
destroy
()
Destroys
setAttribs
(
-
attribs
Takes the attributes given in parameters
Parameters:
-
attribsArrayattribs
setContext
(
-
gl -
transparent
Initialises the context and the properties
Parameters:
-
glWebGLContextthe current WebGL drawing context
-
transparentBooleanWhether or not the drawing context should be transparent
