new WebGLMaskManager(renderer)
Parameters:
| Name | Type | Description |
|---|---|---|
renderer |
WebGLRenderer | The renderer this manager works for. |
Methods
-
bindGraphics(graphics, webGLData)
-
TODO this does not belong here!
Parameters:
Name Type Description graphicsGraphics webGLDataArray.<any> -
destroy()
-
Destroys the mask stack.
-
popMask(maskData)
-
Removes the last filter from the filter stack and doesn't return it.
Parameters:
Name Type Description maskDataArray.<any> -
popStencil(graphics, webGLData)
-
TODO @alvin
Parameters:
Name Type Description graphicsGraphics webGLDataArray.<any> -
pushMask(maskData)
-
Applies the Mask and adds it to the current filter stack.
Parameters:
Name Type Description maskDataArray.<any> The mask data structure to use
-
pushStencil(graphics, webGLData)
-
Applies the Mask and adds it to the current filter stack. @alvin
Parameters:
Name Type Description graphicsGraphics webGLDataArray.<any> -
setMaskStack(stencilMaskStack)
-
Changes the mask stack that is used by this manager.
Parameters:
Name Type Description stencilMaskStackStencilMaskStack The mask stack