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