Class: PIXI.WebGLBlendModeManager
Constructor
new WebGLBlendModeManager(gl)
Parameters
Name | Type | Description |
---|---|---|
gl | WebGLContext | the current WebGL drawing context |
- Source code: pixi/renderers/webgl/utils/WebGLBlendModeManager.js (Line 5)
Public Properties
- Source code: pixi/renderers/webgl/utils/WebGLBlendModeManager.js (Line 12)
currentBlendMode : number
Public Methods
- Source code: pixi/renderers/webgl/utils/WebGLBlendModeManager.js (Line 54)
- Source code: pixi/renderers/webgl/utils/WebGLBlendModeManager.js (Line 32)
- Source code: pixi/renderers/webgl/utils/WebGLBlendModeManager.js (Line 21)
destroy()
Destroys this object.
setBlendMode(blendMode)
Sets-up the given blendMode from WebGL's point of view.
Parameters
Name | Type | Description |
---|---|---|
blendMode | Number | the blendMode, should be a Pixi const, such as PIXI.BlendModes.ADD |
setContext(gl)
Sets the WebGL Context.
Parameters
Name | Type | Description |
---|---|---|
gl | WebGLContext | the current WebGL drawing context |
© 2016 Richard Davey, Photon Storm Ltd.
Licensed under the MIT License.
http://phaser.io/docs/2.6.2/PIXI.WebGLBlendModeManager.html