(path_ptr: *const u8)
| 1016 | |
| 1017 | #[no_mangle] |
| 1018 | pub extern "C" fn bloom_load_image(path_ptr: *const u8) -> f64 { |
| 1019 | let path = str_from_header(path_ptr); |
| 1020 | match std::fs::read(path) { Ok(data) => engine().textures.load_image(&data), Err(_) => 0.0 } |
| 1021 | } |
| 1022 | |
| 1023 | #[no_mangle] |
| 1024 | pub extern "C" fn bloom_image_resize(handle: f64, w: f64, h: f64) { |
nothing calls this directly
no test coverage detected