/** * A WebGL Index Buffer — extends {@link IndexBuffer} with GL buffer binding and upload. * @ignore */ export default class WebGLIndexBuffer extends IndexBuffer { /** * @param {WebGLRenderingContext|WebGL2RenderingContext} gl - the WebGL context * @param {number} maxIndices - maximum number of indices this buffer can hold * @param {boolean} [useUint32=false] - use Uint32 indices (WebGL2) instead of Uint16 (WebGL1) */ constructor(gl: WebGLRenderingContext | WebGL2RenderingContext, maxIndices: number, useUint32?: boolean); gl: WebGLRenderingContext | WebGL2RenderingContext; type: 5123 | 5125; buffer: WebGLBuffer; /** * Upload the current index data to the GPU (for dynamic buffers) */ upload(): void; /** * Bind this index buffer */ bind(): void; } import IndexBuffer from "../../buffer/index.js"; //# sourceMappingURL=index.d.ts.map