(path_ptr: *const u8)
| 985 | |
| 986 | #[no_mangle] |
| 987 | pub 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] |
| 996 | pub extern "C" fn bloom_image_resize(handle: f64, w: f64, h: f64) { |
no test coverage detected