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