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

Function bloom_create_mesh

native/windows/src/lib.rs:1053–1060  ·  view source on GitHub ↗
(vertex_ptr: *const f32, vertex_count: f64, index_ptr: *const u32, index_count: f64)

Source from the content-addressed store, hash-verified

1051
1052#[no_mangle]
1053pub extern "C" fn bloom_create_mesh(vertex_ptr: *const f32, vertex_count: f64, index_ptr: *const u32, index_count: f64) -> f64 {
1054 if vertex_ptr.is_null() || index_ptr.is_null() { return 0.0; }
1055 let vcount = vertex_count as usize;
1056 let icount = index_count as usize;
1057 let vertex_data = unsafe { std::slice::from_raw_parts(vertex_ptr, vcount * 12) }; // 12 floats per vertex
1058 let index_data = unsafe { std::slice::from_raw_parts(index_ptr, icount) };
1059 engine().models.create_mesh(vertex_data, index_data)
1060}
1061
1062// ============================================================
1063// Phase 1c — material system FFI

Callers

nothing calls this directly

Calls 2

create_meshMethod · 0.80
engineFunction · 0.70

Tested by

no test coverage detected