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