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

Function bloom_scene_set_transform

native/ios/src/lib.rs:2573–2583  ·  view source on GitHub ↗
(handle: f64, mat_ptr: *const f64)

Source from the content-addressed store, hash-verified

2571
2572#[no_mangle]
2573pub 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]
2586pub extern "C" fn bloom_scene_update_geometry(

Callers 1

setSceneNodeTransformFunction · 0.50

Calls 2

set_transformMethod · 0.80
engineFunction · 0.70

Tested by

no test coverage detected