PIXI.MaskData
class MaskData
Component for masked elements.
Holds mask mode and temporary data about current mask.
Constructor
new PIXI.MaskData(maskObject: PIXI.DisplayObject) → {}
Create MaskData
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
maskObject | PIXI.DisplayObject |
<optional> |
null |
object that describes the mask |
Summary
Properties from MaskData
boolean |
|
PIXI.COLOR_MASK_BITS |
Color mask. |
boolean |
If enabled is true the mask is applied, if false it will not. |
ISpriteMaskFilter |
|
boolean |
Indicator of the type (always true for MaskData objects) |
PIXI.DisplayObject |
|
PIXI.MSAA_QUALITY |
|
boolean |
Whether it belongs to MaskSystem pool |
number |
|
PIXI.MASK_TYPES |
Mask type |
Methods from MaskData
void |
|
void |
Resets the mask data after popMask(). |
Public Properties
enabled: boolean
If enabled is true the mask is applied, if false it will not.
filter: ISpriteMaskFilter = null
The sprite mask filter.
If set to null
, the default sprite mask filter is used.
isMaskData: boolean
Indicator of the type (always true for MaskData objects)
multisample: PIXI.MSAA_QUALITY = PIXI.settings.FILTER_MULTISAMPLE
Number of samples of the sprite mask filter.
If set to null
, the sample count of the current render target is used.
resolution: number = null
Resolution of the sprite mask filter.
If set to null
or 0
, the resolution of the current render target is used.
Public Methods
copyCountersOrReset(maskAbove: PIXI.MaskData) → {void}
Copies counters from maskData above, called from pushMask().
Name | Type | Attributes | Description |
---|---|---|---|
maskAbove | PIXI.MaskData |
<optional> |
Type | Description |
---|---|
void |
reset() → {void}
Resets the mask data after popMask().
Type | Description |
---|---|
void |