PIXI.CanvasMaskManager
class CanvasMaskManager
A set of functions used to handle masking.
Sprite masking is not supported on the CanvasRenderer.
Constructor
new PIXI.CanvasMaskManager(renderer: PIXI.CanvasRenderer) → {}
Name | Type | Description |
---|---|---|
renderer | PIXI.CanvasRenderer |
A reference to the current renderer |
Summary
Methods from CanvasMaskManager
void |
Destroys this canvas mask manager. |
void |
|
void |
|
void |
|
void |
|
Public Methods
destroy() → {void}
Destroys this canvas mask manager.
Type | Description |
---|---|
void |
popMask(renderer: PIXI.CanvasRenderer) → {void}
Restores the current drawing context to the state it was before the mask was applied.
Name | Type | Description |
---|---|---|
renderer | PIXI.CanvasRenderer |
The renderer context to use. |
Type | Description |
---|---|
void |
pushMask(maskData: PIXI.MaskData | PIXI.Graphics) → {void}
This method adds it to the current stack of masks.
Name | Type | Description |
---|---|---|
maskData | PIXI.MaskData | PIXI.Graphics |
the maskData that will be pushed |
Type | Description |
---|---|
void |
recursiveFindShapes(container: PIXI.Container, out: Array<PIXI.Graphics>) → {void}
Renders all PIXI.Graphics shapes in a subtree.
Name | Type | Description |
---|---|---|
container | PIXI.Container |
container to scan. |
out | Array<PIXI.Graphics> |
where to put found shapes |
Type | Description |
---|---|
void |
renderGraphicsShape(graphics: PIXI.Graphics) → {void}
Renders a PIXI.Graphics shape.
Name | Type | Description |
---|---|---|
graphics | PIXI.Graphics |
The object to render. |
Type | Description |
---|---|
void |