1 |
|
2 | export declare class Texture {
|
3 | static defaultData: Uint8Array;
|
4 | image: HTMLImageElement;
|
5 | sampler: Sampler;
|
6 | channel: number;
|
7 | isDirty: boolean;
|
8 | glType: number;
|
9 | isCubetex: boolean;
|
10 | width: number;
|
11 | height: number;
|
12 | border: number;
|
13 | data: any;
|
14 | level: number;
|
15 | internalformat: number;
|
16 | format: number;
|
17 | type: number;
|
18 | flipY: boolean;
|
19 | constructor(rawImage: any, sampler?: any, width?: number, height?: number, border?: number);
|
20 | static clone(origin: Texture): Texture;
|
21 | static cubetexOrder: number[];
|
22 | static createTexture(gl: WebGL2RenderingContext, tex: Texture): void;
|
23 | static texChannels: number[];
|
24 | static unbindTexture(gl: WebGL2RenderingContext, tex: Texture): void;
|
25 | static bindTexture(gl: WebGL2RenderingContext, tex: Texture): void;
|
26 | }
|
27 | export declare class Sampler {
|
28 | magFilter: any;
|
29 | minFilter: any;
|
30 | wrapS: any;
|
31 | wrapT: any;
|
32 | texture?: WebGLTexture;
|
33 | constructor({ magFilter, minFilter, wrapS, wrapT, texture }?: {
|
34 | magFilter?: number;
|
35 | minFilter?: number;
|
36 | wrapS?: number;
|
37 | wrapT?: number;
|
38 | texture?: any;
|
39 | });
|
40 | }
|