UNPKG

696 BTypeScriptView Raw
1import { WebGLCapabilities } from './WebGLCapabilities';
2import { BufferAttribute } from '../../core/BufferAttribute';
3import { InterleavedBufferAttribute } from '../../core/InterleavedBufferAttribute';
4
5export class WebGLAttributes {
6 constructor(gl: WebGLRenderingContext | WebGL2RenderingContext, capabilities: WebGLCapabilities);
7
8 get(attribute: BufferAttribute | InterleavedBufferAttribute): {
9 buffer: WebGLBuffer;
10 type: number;
11 bytesPerElement: number;
12 version: number;
13 };
14
15 remove(attribute: BufferAttribute | InterleavedBufferAttribute): void;
16
17 update(attribute: BufferAttribute | InterleavedBufferAttribute, bufferType: number): void;
18}