/** * A renderer-agnostic index buffer. * Manages a typed array of vertex indices for indexed drawing. * {@link WebGLIndexBuffer} extends this with GL-specific bind/upload operations. * @ignore */ export default class IndexBuffer { /** * @param {number} maxIndices - maximum number of indices this buffer can hold * @param {boolean} [useUint32=false] - use Uint32 indices instead of Uint16 */ constructor(maxIndices: number, useUint32?: boolean); data: Uint16Array | Uint32Array; /** * the current number of indices in the buffer * @type {number} */ length: number; /** * Fill the buffer with a repeating quad index pattern [0,1,2, 2,1,3, 4,5,6, ...] * @param {number} maxQuads - number of quads to generate indices for */ fillQuadPattern(maxQuads: number): void; /** * Reset the index count */ clear(): void; /** * Add indices to the buffer, rebased by the given vertex offset * @param {number[]} indices - source indices to add * @param {number} vertexOffset - value to add to each index */ add(indices: number[], vertexOffset: number): void; /** * Add pre-computed absolute indices to the buffer (no rebasing) * @param {number[]} indices - absolute index values to add */ addRaw(indices: number[]): void; } //# sourceMappingURL=index.d.ts.map