UNPKG

@spearwolf/twopoint5d

Version:

Create 2.5D realtime graphics and pixelart with WebGL and three.js

20 lines 979 B
import { VertexObjectBuffer } from './VertexObjectBuffer.js'; import { VertexObjectDescriptor } from './VertexObjectDescriptor.js'; import type { VertexObjectBuffersData, VertexObjectDescription } from './types.js'; export declare class VOBufferPool { #private; readonly descriptor: VertexObjectDescriptor; readonly capacity: number; buffer: VertexObjectBuffer; constructor(descriptor: VertexObjectDescriptor | VertexObjectDescription, capacityOrData: number | VertexObjectBuffersData); get usedCount(): number; set usedCount(value: number); get availableCount(): number; get isDisposed(): boolean; clear(): void; dispose(): void; createFromAttributes(attributes: Record<string, ArrayLike<number>>): [objectCount: number, firstObjectIndex: number]; toBuffersData(): VertexObjectBuffersData; fromBuffersData(buffersData: VertexObjectBuffersData, copyTypedArrays?: boolean): void; } //# sourceMappingURL=VOBufferPool.d.ts.map