MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / bloom_scene_set_transform

Function bloom_scene_set_transform

native/android/src/lib.rs:2193–2203  ·  view source on GitHub ↗
(handle: f64, mat_ptr: *const f64)

Source from the content-addressed store, hash-verified

2191
2192#[no_mangle]
2193pub 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]
2206pub extern "C" fn bloom_scene_set_user_data(handle: f64, data: f64) { engine().scene.set_user_data(handle, data as i64); }

Callers

nothing calls this directly

Calls 2

set_transformMethod · 0.80
engineFunction · 0.70

Tested by

no test coverage detected