new Tiny.MaskManager(renderer)
| Name | Type | Description |
|---|---|---|
renderer |
Tiny.WebGLRenderer |
The renderer this manager works for. |
Extends
Members
-
rendererTiny.WebGLRenderer
-
The renderer this manager works for.
Methods
-
Generic destroy methods to be overridden by the subclass
-
inherited onContextChange()
-
Generic method called when there is a WebGL context change.
-
popMask(target, maskData)
-
Removes the last mask from the mask stack and doesn't return it.
Name Type Description targetTiny.DisplayObject Display Object to pop the mask from
maskDataTiny.Sprite | Tiny.Graphics The masking data.
-
popScissorMask()
-
-
popSpriteMask()
-
Removes the last filter from the filter stack and doesn't return it.
-
popStencilMask()
-
Removes the last filter from the filter stack and doesn't return it.
-
pushMask(target, maskData)
-
Applies the Mask and adds it to the current filter stack.
Name Type Description targetTiny.DisplayObject Display Object to push the mask to
maskDataTiny.Sprite | Tiny.Graphics The masking data.
-
pushScissorMask(target, maskData)
-
Name Type Description targetTiny.DisplayObject Display Object to push the mask to
maskDataTiny.Graphics The masking data.
-
pushSpriteMask(target, maskData)
-
Applies the Mask and adds it to the current filter stack.
Name Type Description targetTiny.RenderTarget Display Object to push the sprite mask to
maskDataTiny.Sprite Sprite to be used as the mask
-
pushStencilMask(maskData)
-
Applies the Mask and adds it to the current filter stack.
Name Type Description maskDataTiny.Sprite | Tiny.Graphics The masking data.