1 | import { MSAA_QUALITY } from '@pixi/constants';
|
2 | import { Rectangle } from '@pixi/math';
|
3 | import type { Matrix } from '@pixi/math';
|
4 | import type { RenderTexture } from '../renderTexture/RenderTexture';
|
5 | import type { Filter } from './Filter';
|
6 | import type { IFilterTarget } from './IFilterTarget';
|
7 | /**
|
8 | * System plugin to the renderer to manage filter states.
|
9 | * @ignore
|
10 | */
|
11 | export declare class FilterState {
|
12 | renderTexture: RenderTexture;
|
13 | /**
|
14 | * Target of the filters
|
15 | * We store for case when custom filter wants to know the element it was applied on
|
16 | * @member {PIXI.DisplayObject}
|
17 | */
|
18 | target: IFilterTarget;
|
19 | /**
|
20 | * Compatibility with PixiJS v4 filters
|
21 | * @default false
|
22 | */
|
23 | legacy: boolean;
|
24 | /**
|
25 | * Resolution of filters
|
26 | * @default 1
|
27 | */
|
28 | resolution: number;
|
29 | /**
|
30 | * Number of samples
|
31 | * @default MSAA_QUALITY.NONE
|
32 | */
|
33 | multisample: MSAA_QUALITY;
|
34 | /** Source frame. */
|
35 | sourceFrame: Rectangle;
|
36 | /** Destination frame. */
|
37 | destinationFrame: Rectangle;
|
38 | /** Original render-target source frame. */
|
39 | bindingSourceFrame: Rectangle;
|
40 | /** Original render-target destination frame. */
|
41 | bindingDestinationFrame: Rectangle;
|
42 | /** Collection of filters. */
|
43 | filters: Array<Filter>;
|
44 | /** Projection system transform saved by link. */
|
45 | transform: Matrix;
|
46 | constructor();
|
47 | /** Clears the state */
|
48 | clear(): void;
|
49 | }
|