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

Function initSharedMeshes

examples/renderer-test/main.ts:202–207  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

200let cubeHandle = 0;
201
202function initSharedMeshes(): void {
203 const sv = makeSphereVertices(0.5, 24, 16);
204 const si = makeSphereIndices(24, 16);
205 sphereHandle = createMesh(sv, si).handle;
206 cubeHandle = genMeshCube(1, 1, 1).handle;
207}
208
209// ---- Helpers ----
210

Callers 1

main.tsFile · 0.70

Calls 4

createMeshFunction · 0.90
genMeshCubeFunction · 0.90
makeSphereVerticesFunction · 0.70
makeSphereIndicesFunction · 0.70

Tested by

no test coverage detected