(handle: f64, mat_ptr: *const f64)
| 2191 | |
| 2192 | #[no_mangle] |
| 2193 | pub extern "C" fn bloom_scene_set_transform(handle: f64, mat_ptr: *const f64) { |
| 2194 | if mat_ptr.is_null() { return; } |
| 2195 | let slice = unsafe { std::slice::from_raw_parts(mat_ptr, 16) }; |
| 2196 | let mut mat = [[0.0f32; 4]; 4]; |
| 2197 | for col in 0..4 { |
| 2198 | for row in 0..4 { |
| 2199 | mat[col][row] = slice[col * 4 + row] as f32; |
| 2200 | } |
| 2201 | } |
| 2202 | engine().scene.set_transform(handle, mat); |
| 2203 | } |
| 2204 | |
| 2205 | #[no_mangle] |
| 2206 | pub extern "C" fn bloom_scene_set_user_data(handle: f64, data: f64) { engine().scene.set_user_data(handle, data as i64); } |
nothing calls this directly
no test coverage detected