UNPKG

1.15 kBTypeScriptView Raw
1import { WebGLCapabilities } from "./WebGLCapabilities.js";
2import { WebGLExtensions } from "./WebGLExtensions.js";
3import { WebGLInfo } from "./WebGLInfo.js";
4import { WebGLProperties } from "./WebGLProperties.js";
5import { WebGLState } from "./WebGLState.js";
6import { WebGLUtils } from "./WebGLUtils.js";
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}