UNPKG

@types/three

Version:
31 lines (28 loc) 1.15 kB
import { WebGLCapabilities } from "./WebGLCapabilities.js"; import { WebGLExtensions } from "./WebGLExtensions.js"; import { WebGLInfo } from "./WebGLInfo.js"; import { WebGLProperties } from "./WebGLProperties.js"; import { WebGLState } from "./WebGLState.js"; import { WebGLUtils } from "./WebGLUtils.js"; export class WebGLTextures { constructor( gl: WebGLRenderingContext, extensions: WebGLExtensions, state: WebGLState, properties: WebGLProperties, capabilities: WebGLCapabilities, utils: WebGLUtils, info: WebGLInfo, ); allocateTextureUnit(): void; resetTextureUnits(): void; setTexture2D(texture: any, slot: number): void; setTexture2DArray(texture: any, slot: number): void; setTexture3D(texture: any, slot: number): void; setTextureCube(texture: any, slot: number): void; setupRenderTarget(renderTarget: any): void; updateRenderTargetMipmap(renderTarget: any): void; updateMultisampleRenderTarget(renderTarget: any): void; safeSetTexture2D(texture: any, slot: number): void; safeSetTextureCube(texture: any, slot: number): void; }