(path_ptr: *const u8)
| 632 | |
| 633 | #[no_mangle] |
| 634 | pub 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] |
| 640 | pub extern "C" fn bloom_image_resize(handle: f64, w: f64, h: f64) { |
nothing calls this directly
no test coverage detected