@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
55 lines • 1.35 kB
TypeScript
/**
* Helper class, allowing us to treat geometry build process as a stream without having to create intermediate arrays and performing unnecessary copying
*/
export class StreamGeometryBuilder {
/**
*
* @type {number}
*/
cursor_vertices: number;
/**
*
* @type {number}
*/
cursor_indices: number;
/**
*
* @type {Float32Array|number[]|null}
* @private
*/
private __vertex_positions;
/**
*
* @type {Float32Array|number[]|null}
* @private
*/
private __vertex_normals;
/**
*
* @type {Float32Array|number[]|null}
* @private
*/
private __vertex_uvs;
/**
*
* @type {Uint8Array|Uint16Array|Uint32Array|number[]|null}
* @private
*/
private __indices;
get positions(): number[] | Float32Array;
get normals(): number[] | Float32Array;
get uvs(): number[] | Float32Array;
get indices(): number[] | Uint8Array | Uint16Array | Uint32Array;
/**
*
* @param {number} vertex_count
* @param {number} polygon_count
*/
allocate(vertex_count: number, polygon_count: number): void;
/**
* @returns {THREE.BufferGeometry}
*/
build(): THREE.BufferGeometry;
}
import { BufferGeometry } from "three";
//# sourceMappingURL=StreamGeometryBuilder.d.ts.map