(vertex_ptr: *const f32, vertex_count: f64, index_ptr: *const u32, index_count: f64)
| 2138 | |
| 2139 | #[no_mangle] |
| 2140 | pub extern "C" fn bloom_create_mesh(vertex_ptr: *const f32, vertex_count: f64, index_ptr: *const u32, index_count: f64) -> f64 { |
| 2141 | if vertex_ptr.is_null() || index_ptr.is_null() { return 0.0; } |
| 2142 | let vcount = vertex_count as usize; |
| 2143 | let icount = index_count as usize; |
| 2144 | let vertex_data = unsafe { std::slice::from_raw_parts(vertex_ptr, vcount * 12) }; |
| 2145 | let index_data = unsafe { std::slice::from_raw_parts(index_ptr, icount) }; |
| 2146 | engine().models.create_mesh(vertex_data, index_data) |
| 2147 | } |
| 2148 | |
| 2149 | // ============================================================ |
| 2150 | // Phase 1c — material system FFI |
nothing calls this directly
no test coverage detected