(handle: f64, mat_ptr: *const f64)
| 1948 | |
| 1949 | #[no_mangle] |
| 1950 | pub extern "C" fn bloom_scene_set_transform(handle: f64, mat_ptr: *const f64) { |
| 1951 | if mat_ptr.is_null() { return; } |
| 1952 | let slice = unsafe { std::slice::from_raw_parts(mat_ptr, 16) }; |
| 1953 | let mut mat = [[0.0f32; 4]; 4]; |
| 1954 | for col in 0..4 { |
| 1955 | for row in 0..4 { |
| 1956 | mat[col][row] = slice[col * 4 + row] as f32; |
| 1957 | } |
| 1958 | } |
| 1959 | engine().scene.set_transform(handle, mat); |
| 1960 | } |
| 1961 | |
| 1962 | #[no_mangle] |
| 1963 | pub extern "C" fn bloom_scene_update_geometry( |
nothing calls this directly
no test coverage detected