Class: CanvasMaskManager

PIXI. CanvasMaskManager

new CanvasMaskManager()

A set of functions used to handle masking.

Source:
src/pixi/renderers/canvas/utils/CanvasMaskManager.js line 11

Methods

popMask(renderSession)

Restores the current drawing context to the state it was before the mask was applied.

Parameters:
Name Type Description
renderSession Object

The renderSession whose context will be used for this mask manager.

Source:
src/pixi/renderers/canvas/utils/CanvasMaskManager.js line 50

pushMask(maskData, renderSession)

This method adds it to the current stack of masks.

Parameters:
Name Type Description
maskData Object

the maskData that will be pushed

renderSession Object

The renderSession whose context will be used for this mask manager.

Source:
src/pixi/renderers/canvas/utils/CanvasMaskManager.js line 17

phaser-ce@2.10.6 is on GitHub and NPM

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