Class: StencilManager

SINT.StencilManager

new SINT.StencilManager (renderer)

Name Type Description
renderer SINT.WebGLRenderer

The renderer this manager works for.

Extends

Members

The renderer this manager works for.

Methods

_getBitwiseMask ()number

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

Returns:
Type Description
number The bitwise mask.

_useCurrent ()

Setup renderer to use the current stencil data.

destroy () overrides

Destroys the mask stack.

onContextChange () inherited overrides

Generic method called when there is a WebGL context change.

popStencil ()

Removes the last mask from the stencil stack. @alvin

pushStencil (graphics)

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

Name Type Description
graphics SINT.Graphics

The mask

setMaskStack (stencilMaskStack)

Changes the mask stack that is used by this manager.

Name Type Description
stencilMaskStack Array.<SINT.Graphics>

The mask stack