PIXI.StencilSystem
class StencilSystem extends PIXI.AbstractMaskSystem
System plugin to the renderer to manage stencils (used for masks).
Constructor
new PIXI.StencilSystem(renderer: PIXI.Renderer) → {}
| Name | Type | Description |
|---|---|---|
| renderer | PIXI.Renderer |
The renderer this System works for. |
Summary
Methods from StencilSystem
| void |
|
| void |
|
Properties inherited from AbstractMaskSystem
| Array<PIXI.MaskData> |
|
Methods inherited from AbstractMaskSystem
| void |
Destroys the mask stack. |
| number |
Gets count of masks of certain type. |
| void |
|
Public Methods
pop(maskObject: PIXI.DisplayObject) → {void}
Pops stencil mask. MaskData is already removed from stack
| Name | Type | Description |
|---|---|---|
| maskObject | PIXI.DisplayObject |
object of popped mask data |
| Type | Description |
|---|---|
| void |
push(maskData: PIXI.MaskData) → {void}
Applies the Mask and adds it to the current stencil stack.
| Name | Type | Description |
|---|---|---|
| maskData | PIXI.MaskData |
The mask data |
| Type | Description |
|---|---|
| void |