Class createjs.WebGLRenderer.Transform
Defined in: webgl_renderer.js.
Constructor Attributes | Constructor Name and Description |
---|---|
createjs.WebGLRenderer.Transform(context, program, key)
An inner class that encapsulates an affine transform used by this renderer.
|
Method Attributes | Method Name and Description |
---|---|
bindContext(context)
Binds this transform to the specified context.
|
|
set(a, b, c, d, tx, ty)
Sets this transform.
|
Class Detail
createjs.WebGLRenderer.Transform(context, program, key)
An inner class that encapsulates an affine transform used by this renderer.
This renderer uses a 3x3 matrix listed below to apply an affine
transform used by the Canvas 2D API in its vertex shader. (This class uses
transposed matrices because WebGL uses them by default.)
| a b 0 |
| c d 0 |
| tx ty 1 |
- Parameters:
- {createjs.WebGLRenderer.Context} context
- {WebGLProgram} program
- {string} key
Method Detail
bindContext(context)
Binds this transform to the specified context.
- Parameters:
- {createjs.WebGLRenderer.Context} context
set(a, b, c, d, tx, ty)
Sets this transform.
- Parameters:
- {number} a
- {number} b
- {number} c
- {number} d
- {number} tx
- {number} ty