W3cubDocs

/Phaser

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

currentBlendMode : number

Source code: pixi/renderers/webgl/utils/WebGLBlendModeManager.js (Line 12)

Public Methods

destroy()

Destroys this object.

Source code: pixi/renderers/webgl/utils/WebGLBlendModeManager.js (Line 54)

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

Source code: pixi/renderers/webgl/utils/WebGLBlendModeManager.js (Line 32)

setContext(gl)

Sets the WebGL Context.

Parameters
Name Type Description
gl WebGLContext

the current WebGL drawing context

Source code: pixi/renderers/webgl/utils/WebGLBlendModeManager.js (Line 21)

© 2016 Richard Davey, Photon Storm Ltd.
Licensed under the MIT License.
http://phaser.io/docs/2.6.2/PIXI.WebGLBlendModeManager.html