WebGLTextures.d.ts 1.1 KB
Newer Older
M
Mugen87 已提交
1 2 3 4 5 6
import { WebGLExtensions } from './WebGLExtensions';
import { WebGLState } from './WebGLState';
import { WebGLProperties } from './WebGLProperties';
import { WebGLCapabilities } from './WebGLCapabilities';
import { WebGLUtils } from './WebGLUtils';
import { WebGLInfo } from './WebGLInfo';
7

L
lu wang 已提交
8
export class WebGLTextures {
M
Mr.doob 已提交
9 10

	constructor(
11 12 13 14 15 16 17
		gl: WebGLRenderingContext,
		extensions: WebGLExtensions,
		state: WebGLState,
		properties: WebGLProperties,
		capabilities: WebGLCapabilities,
		utils: WebGLUtils,
		info: WebGLInfo
M
Mr.doob 已提交
18
	);
L
lu wang 已提交
19

20 21
	allocateTextureUnit(): void;
	resetTextureUnits(): void;
M
Mr.doob 已提交
22
	setTexture2D( texture: any, slot: number ): void;
23 24
	setTexture2DArray( texture: any, slot: number ): void;
	setTexture3D( texture: any, slot: number ): void;
M
Mr.doob 已提交
25 26 27 28
	setTextureCube( texture: any, slot: number ): void;
	setTextureCubeDynamic( texture: any, slot: number ): void;
	setupRenderTarget( renderTarget: any ): void;
	updateRenderTargetMipmap( renderTarget: any ): void;
29 30 31
	updateMultisampleRenderTarget( renderTarget: any ): void;
	safeSetTexture2D( texture: any, slot: number ): void;
	safeSetTextureCube( texture: any, slot: number ): void;
M
Mr.doob 已提交
32

L
lu wang 已提交
33
}