(handle: f64, matrix_ptr: i64)
| 803 | /// forwards as a pointer to the Float64 data. |
| 804 | #[no_mangle] |
| 805 | pub extern "C" fn bloom_scene_set_transform(handle: f64, matrix_ptr: i64) { |
| 806 | if matrix_ptr == 0 { return; } |
| 807 | let src = unsafe { std::slice::from_raw_parts(matrix_ptr as *const f64, 16) }; |
| 808 | let mut arr = [0.0f32; 16]; |
| 809 | for i in 0..16 { arr[i] = src[i] as f32; } |
| 810 | scene::set_transform(handle as u32, arr); |
| 811 | } |
| 812 | |
| 813 | /// Geometry: vert_ptr points to `vertex_count * 12` f64s (12 floats per |
| 814 | /// vertex: xyz, nx ny nz, rgba, uv). idx_ptr points to `index_count` f64s |
nothing calls this directly
no test coverage detected