UNPKG

1.1 kBTypeScriptView Raw
1import type { Renderer } from '../Renderer';
2import type { ISystem } from '../system/ISystem';
3import type { MaskData } from './MaskData';
4/**
5 * System plugin to the renderer to manage specific types of masking operations.
6 * @memberof PIXI
7 */
8export declare class AbstractMaskSystem implements ISystem {
9 /**
10 * The mask stack
11 * @member {PIXI.MaskData[]}
12 */
13 protected maskStack: Array<MaskData>;
14 /**
15 * Constant for gl.enable
16 * @private
17 */
18 protected glConst: number;
19 protected renderer: Renderer;
20 /**
21 * @param renderer - The renderer this System works for.
22 */
23 constructor(renderer: Renderer);
24 /** Gets count of masks of certain type. */
25 getStackLength(): number;
26 /**
27 * Changes the mask stack that is used by this System.
28 * @param {PIXI.MaskData[]} maskStack - The mask stack
29 */
30 setMaskStack(maskStack: Array<MaskData>): void;
31 /**
32 * Setup renderer to use the current mask data.
33 * @private
34 */
35 protected _useCurrent(): void;
36 /** Destroys the mask stack. */
37 destroy(): void;
38}