UNPKG

1.13 kBTypeScriptView Raw
1import { WebGLExtensions } from './WebGLExtensions';
2import { WebGLState } from './WebGLState';
3import { WebGLProperties } from './WebGLProperties';
4import { WebGLCapabilities } from './WebGLCapabilities';
5import { WebGLUtils } from './WebGLUtils';
6import { WebGLInfo } from './WebGLInfo';
7
8export class WebGLTextures {
9 constructor(
10 gl: WebGLRenderingContext,
11 extensions: WebGLExtensions,
12 state: WebGLState,
13 properties: WebGLProperties,
14 capabilities: WebGLCapabilities,
15 utils: WebGLUtils,
16 info: WebGLInfo,
17 );
18
19 allocateTextureUnit(): void;
20 resetTextureUnits(): void;
21 setTexture2D(texture: any, slot: number): void;
22 setTexture2DArray(texture: any, slot: number): void;
23 setTexture3D(texture: any, slot: number): void;
24 setTextureCube(texture: any, slot: number): void;
25 setupRenderTarget(renderTarget: any): void;
26 updateRenderTargetMipmap(renderTarget: any): void;
27 updateMultisampleRenderTarget(renderTarget: any): void;
28 safeSetTexture2D(texture: any, slot: number): void;
29 safeSetTextureCube(texture: any, slot: number): void;
30}