UNPKG

882 BTypeScriptView Raw
1import { BufferAttribute } from "../../core/BufferAttribute.js";
2import { BufferGeometry } from "../../core/BufferGeometry.js";
3import { Object3D } from "../../core/Object3D.js";
4import { Material } from "../../materials/Material.js";
5import { WebGLAttributes } from "./WebGLAttributes.js";
6import { WebGLProgram } from "./WebGLProgram.js";
7
8export class WebGLBindingStates {
9 constructor(gl: WebGLRenderingContext, attributes: WebGLAttributes);
10
11 setup(
12 object: Object3D,
13 material: Material,
14 program: WebGLProgram,
15 geometry: BufferGeometry,
16 index: BufferAttribute,
17 ): void;
18 reset(): void;
19 resetDefaultState(): void;
20 dispose(): void;
21 releaseStatesOfGeometry(): void;
22 releaseStatesOfProgram(): void;
23 initAttributes(): void;
24 enableAttribute(attribute: number): void;
25 disableUnusedAttributes(): void;
26}