Class: WebGLBlendModeManager

PIXI. WebGLBlendModeManager

new WebGLBlendModeManager(gl)

Parameters:
Name Type Description
gl WebGLContext

the current WebGL drawing context

Source:
src/pixi/renderers/webgl/utils/WebGLBlendModeManager.js line 10

Members

currentBlendMode : Number

Type:
  • Number
Source:
src/pixi/renderers/webgl/utils/WebGLBlendModeManager.js line 16

Methods

destroy()

Destroys this object.

Source:
src/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:
src/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:
src/pixi/renderers/webgl/utils/WebGLBlendModeManager.js line 21

phaser-ce@2.10.6 is on GitHub and NPM

Documentation generated by JSDoc 3.5.4 on 2018-06-01 using Tomorrow.