(handle: f64, mat_ptr: *const f64)
| 2571 | |
| 2572 | #[no_mangle] |
| 2573 | pub extern "C" fn bloom_scene_set_transform(handle: f64, mat_ptr: *const f64) { |
| 2574 | if mat_ptr.is_null() { return; } |
| 2575 | let slice = unsafe { std::slice::from_raw_parts(mat_ptr, 16) }; |
| 2576 | let mut mat = [[0.0f32; 4]; 4]; |
| 2577 | for col in 0..4 { |
| 2578 | for row in 0..4 { |
| 2579 | mat[col][row] = slice[col * 4 + row] as f32; |
| 2580 | } |
| 2581 | } |
| 2582 | engine().scene.set_transform(handle, mat); |
| 2583 | } |
| 2584 | |
| 2585 | #[no_mangle] |
| 2586 | pub extern "C" fn bloom_scene_update_geometry( |
no test coverage detected