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

Function bloom_scene_set_transform

native/linux/src/lib.rs:1950–1960  ·  view source on GitHub ↗
(handle: f64, mat_ptr: *const f64)

Source from the content-addressed store, hash-verified

1948
1949#[no_mangle]
1950pub 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]
1963pub extern "C" fn bloom_scene_update_geometry(

Callers

nothing calls this directly

Calls 2

set_transformMethod · 0.80
engineFunction · 0.70

Tested by

no test coverage detected