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 graphics
Graphics webGLData
Array.<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 maskData
Array.<any> -
popStencil(graphics, webGLData)
-
TODO @alvin
Parameters:
Name Type Description graphics
Graphics webGLData
Array.<any> -
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
-
pushStencil(graphics, webGLData)
-
Applies the Mask and adds it to the current filter stack. @alvin
Parameters:
Name Type Description graphics
Graphics webGLData
Array.<any> -
setMaskStack(stencilMaskStack)
-
Changes the mask stack that is used by this manager.
Parameters:
Name Type Description stencilMaskStack
StencilMaskStack The mask stack