UNPKG

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