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