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

Function bloom_load_model

native/linux/src/lib.rs:1104–1107  ·  view source on GitHub ↗
(path_ptr: *const u8)

Source from the content-addressed store, hash-verified

1102
1103#[no_mangle]
1104pub extern "C" fn bloom_load_model(path_ptr: *const u8) -> f64 {
1105 let path = str_from_header(path_ptr);
1106 match std::fs::read(path) { Ok(data) => engine().models.load_model(&data), Err(_) => 0.0 }
1107}
1108#[no_mangle]
1109pub extern "C" fn bloom_draw_model(handle: f64, x: f64, y: f64, z: f64, scale: f64, r: f64, g: f64, b: f64, a: f64) {
1110 let eng = engine();

Callers

nothing calls this directly

Calls 3

str_from_headerFunction · 0.85
load_modelMethod · 0.80
engineFunction · 0.70

Tested by

no test coverage detected