@spearwolf/twopoint5d
Version:
Create 2.5D realtime graphics and pixelart with WebGL and three.js
16 lines • 774 B
TypeScript
import { VOBufferPool } from './VOBufferPool.js';
import type { VertexObjectDescriptor } from './VertexObjectDescriptor.js';
import type { VO, VertexObjectBuffersData, VertexObjectDescription } from './types.js';
export declare class VertexObjectPool<VOType> extends VOBufferPool {
#private;
onCreateVO?: (vo: VOType & VO) => (VOType & VO) | void;
onDestroyVO?: (vo: VOType & VO) => void;
constructor(descriptor: VertexObjectDescriptor | VertexObjectDescription, capacityOrData: number | VertexObjectBuffersData);
resize(capacity: number): void;
createVO(): VOType & VO;
containsVO(vo: VO): boolean;
dispose(): void;
freeVO(vo: VO): void;
getVO(idx: number): (VOType & VO) | undefined;
}
//# sourceMappingURL=VertexObjectPool.d.ts.map