(path_ptr: *const u8)
| 976 | |
| 977 | #[no_mangle] |
| 978 | pub extern "C" fn bloom_load_image(path_ptr: *const u8) -> f64 { |
| 979 | let path = str_from_header(path_ptr); |
| 980 | match std::fs::read(path) { |
| 981 | Ok(data) => engine().textures.load_image(&data), |
| 982 | Err(_) => 0.0, |
| 983 | } |
| 984 | } |
| 985 | |
| 986 | #[no_mangle] |
| 987 | pub extern "C" fn bloom_image_resize(handle: f64, w: f64, h: f64) { |
nothing calls this directly
no test coverage detected