1 | import { BufferAttribute } from "../../core/BufferAttribute.js";
|
2 | import { GLBufferAttribute } from "../../core/GLBufferAttribute.js";
|
3 | import { InterleavedBufferAttribute } from "../../core/InterleavedBufferAttribute.js";
|
4 |
|
5 | export 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 | }
|