MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / createMeshExplicit

Function createMeshExplicit

src/models/index.ts:664–670  ·  view source on GitHub ↗
(
  vertices: number[], vertexCount: number,
  indices: number[], indexCount: number,
)

Source from the content-addressed store, hash-verified

662/// Use this when the underlying `number[]` arrays were built with
663/// `.push()`, since Perry's `.length` doesn't reflect post-push size.
664export function createMeshExplicit(
665 vertices: number[], vertexCount: number,
666 indices: number[], indexCount: number,
667): Model {
668 const handle = bloom_create_mesh(vertices as any, vertexCount, indices as any, indexCount);
669 return makeModel(handle, 1, 1);
670}
671
672export function setAmbientLight(color: Color, intensity: number): void {
673 bloom_set_ambient_light(color.r, color.g, color.b, intensity);

Callers 1

initSharedMeshesFunction · 0.90

Calls 2

makeModelFunction · 0.85
bloom_create_meshFunction · 0.50

Tested by

no test coverage detected