Class: StencilManager

PIXI. StencilManager

new PIXI.StencilManager(renderer)

Name Type Description
renderer PIXI.WebGLRenderer

The renderer this manager works for.

Extends

Members

The renderer this manager works for.

Methods

Fill 1s equal to the number of acitve stencil masks.

Returns:
Type Description
number The bitwise mask.

Setup renderer to use the current stencil data.

Destroys the mask stack.

Generic method called when there is a WebGL context change.

Removes the last mask from the stencil stack. @alvin

Applies the Mask and adds it to the current stencil stack. @alvin

Name Type Description
graphics PIXI.Graphics

The mask

Changes the mask stack that is used by this manager.

Name Type Description
stencilMaskStack Array.<PIXI.Graphics>

The mask stack