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

Function bloom_scene_set_transform

native/watchos/src/lib.rs:805–811  ·  view source on GitHub ↗
(handle: f64, matrix_ptr: i64)

Source from the content-addressed store, hash-verified

803/// forwards as a pointer to the Float64 data.
804#[no_mangle]
805pub extern "C" fn bloom_scene_set_transform(handle: f64, matrix_ptr: i64) {
806 if matrix_ptr == 0 { return; }
807 let src = unsafe { std::slice::from_raw_parts(matrix_ptr as *const f64, 16) };
808 let mut arr = [0.0f32; 16];
809 for i in 0..16 { arr[i] = src[i] as f32; }
810 scene::set_transform(handle as u32, arr);
811}
812
813/// Geometry: vert_ptr points to `vertex_count * 12` f64s (12 floats per
814/// vertex: xyz, nx ny nz, rgba, uv). idx_ptr points to `index_count` f64s

Callers

nothing calls this directly

Calls 1

set_transformFunction · 0.85

Tested by

no test coverage detected