1 | import { WebGLExtensions } from './WebGLExtensions';
|
2 | import { WebGLAttributes } from './WebGLAttributes';
|
3 | import { WebGLProgram } from './WebGLProgram';
|
4 | import { WebGLCapabilities } from './WebGLCapabilities';
|
5 | import { Object3D } from './../../core/Object3D';
|
6 | import { BufferGeometry } from './../../core/BufferGeometry';
|
7 | import { BufferAttribute } from './../../core/BufferAttribute';
|
8 | import { Material } from './../../materials/Material';
|
9 |
|
10 | export class WebGLBindingStates {
|
11 | constructor(
|
12 | gl: WebGLRenderingContext,
|
13 | extensions: WebGLExtensions,
|
14 | attributes: WebGLAttributes,
|
15 | capabilities: WebGLCapabilities,
|
16 | );
|
17 |
|
18 | setup(
|
19 | object: Object3D,
|
20 | material: Material,
|
21 | program: WebGLProgram,
|
22 | geometry: BufferGeometry,
|
23 | index: BufferAttribute,
|
24 | ): void;
|
25 | reset(): void;
|
26 | resetDefaultState(): void;
|
27 | dispose(): void;
|
28 | releaseStatesOfGeometry(): void;
|
29 | releaseStatesOfProgram(): void;
|
30 | initAttributes(): void;
|
31 | enableAttribute(attribute: number): void;
|
32 | disableUnusedAttributes(): void;
|
33 | }
|