UNPKG

856 BTypeScriptView Raw
1/**
2 * Internal texture for WebGL context.
3 * @memberof PIXI
4 */
5export declare class GLTexture {
6 /** The WebGL texture. */
7 texture: WebGLTexture;
8 /** Width of texture that was used in texImage2D. */
9 width: number;
10 /** Height of texture that was used in texImage2D. */
11 height: number;
12 /** Whether mip levels has to be generated. */
13 mipmap: boolean;
14 /** WrapMode copied from baseTexture. */
15 wrapMode: number;
16 /** Type copied from baseTexture. */
17 type: number;
18 /** Type copied from baseTexture. */
19 internalFormat: number;
20 /** Type of sampler corresponding to this texture. See {@link PIXI.SAMPLER_TYPES} */
21 samplerType: number;
22 /** Texture contents dirty flag. */
23 dirtyId: number;
24 /** Texture style dirty flag. */
25 dirtyStyleId: number;
26 constructor(texture: WebGLTexture);
27}