@spearwolf/twopoint5d
Version:
a library to create 2.5d realtime graphics and pixelart with three.js
18 lines • 927 B
TypeScript
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;
clear(): void;
createFromAttributes(attributes: Record<string, ArrayLike<number>>): [objectCount: number, firstObjectIndex: number];
toBuffersData(): VertexObjectBuffersData;
fromBuffersData(buffersData: VertexObjectBuffersData, copyTypedArrays?: boolean): void;
}
//# sourceMappingURL=VOBufferPool.d.ts.map