API Docs for: 1.5.3
Show:

WebGLShaderManager Class

Constructor

WebGLShaderManager

(
  • gl
)
private

Parameters:

  • gl WebGLContext

    the current WebGL drawing context

Methods

activatePrimitiveShader

()

Triggers the primitive shader

activateShader

(
  • shader
)

Sets-up the given shader

Parameters:

  • shader Object

    the shader that is going to be activated

deactivatePrimitiveShader

()

Disable the primitive shader

setAttribs

(
  • attribs
)

Takes the attributes given in parameters

Parameters:

  • attribs Array

    attribs

setContext

(
  • gl
  • transparent
)

Initialises the context and the properties

Parameters:

  • gl WebGLContext

    the current WebGL drawing context

  • transparent Boolean

    Whether or not the drawing context should be transparent