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

Function bloom_load_image

native/android/src/lib.rs:634–637  ·  view source on GitHub ↗
(path_ptr: *const u8)

Source from the content-addressed store, hash-verified

632
633#[no_mangle]
634pub extern "C" fn bloom_load_image(path_ptr: *const u8) -> f64 {
635 let path = str_from_header(path_ptr);
636 match std::fs::read(resolve_path(path)) { Ok(data) => engine().textures.load_image(&data), Err(_) => 0.0 }
637}
638
639#[no_mangle]
640pub extern "C" fn bloom_image_resize(handle: f64, w: f64, h: f64) {

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected