These docs are for Phaser 2.6.2 Phaser 3 docs can be found on GitHub pages.
Phaser CE docs can be found on the Phaser CE Documentation site.

Constructor

PIXI. WebGLBlendModeManager

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)