UNPKG

@types/three

Version:
24 lines (18 loc) 817 B
import { BufferAttribute } from "../../core/BufferAttribute.js"; import { GLBufferAttribute } from "../../core/GLBufferAttribute.js"; import { InterleavedBufferAttribute } from "../../core/InterleavedBufferAttribute.js"; export interface WebGLAttribute { buffer: WebGLBuffer; type: number; bytesPerElement: number; version: number; size: number; } export class WebGLAttributes { constructor(gl: WebGLRenderingContext | WebGL2RenderingContext); get(attribute: BufferAttribute | InterleavedBufferAttribute | GLBufferAttribute): | WebGLAttribute | undefined; remove(attribute: BufferAttribute | InterleavedBufferAttribute | GLBufferAttribute): void; update(attribute: BufferAttribute | InterleavedBufferAttribute | GLBufferAttribute, bufferType: number): void; }