CanvasMaskManager

Class: PIXI.CanvasMaskManager

Constructor

new CanvasMaskManager()

A set of functions used to handle masking.

Source code: pixi/renderers/canvas/utils/CanvasMaskManager.js (Line 5)

Public 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 code: 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 code: pixi/renderers/canvas/utils/CanvasMaskManager.js (Line 17)

© 2016 Richard Davey, Photon Storm Ltd.
Licensed under the MIT License.
http://phaser.io/docs/2.6.2/PIXI.CanvasMaskManager.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部