PIXI. CanvasMaskManager

new CanvasMaskManager()

A set of functions used to handle masking.

Source - pixi/renderers/canvas/utils/CanvasMaskManager.js, line 5

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 - pixi/renderers/canvas/utils/CanvasMaskManager.js, line 49

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 - pixi/renderers/canvas/utils/CanvasMaskManager.js, line 17
Phaser Copyright © 2012-2015 Photon Storm Ltd.
Documentation generated by JSDoc 3.3.0-alpha10 on Wed Jul 29 2015 14:58:02 GMT+0100 (GMT Daylight Time) using the DocStrap template.