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

Function bloom_load_image

native/ios/src/lib.rs:987–993  ·  view source on GitHub ↗
(path_ptr: *const u8)

Source from the content-addressed store, hash-verified

985
986#[no_mangle]
987pub extern "C" fn bloom_load_image(path_ptr: *const u8) -> f64 {
988 let path = str_from_header(path_ptr);
989 match std::fs::read(resolve_path(path)) {
990 Ok(data) => engine().textures.load_image(&data),
991 Err(_) => 0.0,
992 }
993}
994
995#[no_mangle]
996pub extern "C" fn bloom_image_resize(handle: f64, w: f64, h: f64) {

Callers 1

loadImageFunction · 0.50

Calls 4

str_from_headerFunction · 0.85
load_imageMethod · 0.80
resolve_pathFunction · 0.70
engineFunction · 0.70

Tested by

no test coverage detected