Navigation
These archived docs are for Phaser 2.2.2 Phaser 3 docs can be found on newdocs.phaser.io.
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 50

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