Class createjs.WebGLRenderer.Shaders
Defined in: webgl_renderer.js.
Constructor Attributes | Constructor Name and Description |
---|---|
createjs.WebGLRenderer.Shaders(context, vertex, fragment)
An inner class that encapsulates a vertex shader and a fragment shader used
by this renderer.
|
Method Attributes | Method Name and Description |
---|---|
destroy(context)
Deletes the vertex shader and the fragment shader owned by this object.
|
|
Returns the vertex shader owned by this object.
|
|
Returns the vertex shader owned by this object.
|
Class Detail
createjs.WebGLRenderer.Shaders(context, vertex, fragment)
An inner class that encapsulates a vertex shader and a fragment shader used
by this renderer.
- Parameters:
- {createjs.WebGLRenderer.Context} context
- {string} vertex
- {string} fragment
Method Detail
destroy(context)
Deletes the vertex shader and the fragment shader owned by this object.
- Parameters:
- {createjs.WebGLRenderer.Context} context
{WebGLShader}
getFragment()
Returns the vertex shader owned by this object.
- Returns:
- {WebGLShader}
{WebGLShader}
getVertex()
Returns the vertex shader owned by this object.
- Returns:
- {WebGLShader}