Class: WebGLMaskManager

WebGLMaskManager


new WebGLMaskManager(renderer)

Parameters:
Name Type Description
renderer WebGLRenderer

The renderer this manager works for.

Source:

Methods


bindGraphics(graphics, webGLData)

TODO this does not belong here!

Parameters:
Name Type Description
graphics Graphics
webGLData Array.<any>
Source:

destroy()

Destroys the mask stack.

Source:

popMask(maskData)

Removes the last filter from the filter stack and doesn't return it.

Parameters:
Name Type Description
maskData Array.<any>
Source:

popStencil(graphics, webGLData)

TODO @alvin

Parameters:
Name Type Description
graphics Graphics
webGLData Array.<any>
Source:

pushMask(maskData)

Applies the Mask and adds it to the current filter stack.

Parameters:
Name Type Description
maskData Array.<any>

The mask data structure to use

Source:

pushStencil(graphics, webGLData)

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

Parameters:
Name Type Description
graphics Graphics
webGLData Array.<any>
Source:

setMaskStack(stencilMaskStack)

Changes the mask stack that is used by this manager.

Parameters:
Name Type Description
stencilMaskStack StencilMaskStack

The mask stack

Source: