(path_ptr: *const u8)
| 1102 | |
| 1103 | #[no_mangle] |
| 1104 | pub extern "C" fn bloom_load_model(path_ptr: *const u8) -> f64 { |
| 1105 | let path = str_from_header(path_ptr); |
| 1106 | match std::fs::read(path) { Ok(data) => engine().models.load_model(&data), Err(_) => 0.0 } |
| 1107 | } |
| 1108 | #[no_mangle] |
| 1109 | pub extern "C" fn bloom_draw_model(handle: f64, x: f64, y: f64, z: f64, scale: f64, r: f64, g: f64, b: f64, a: f64) { |
| 1110 | let eng = engine(); |
nothing calls this directly
no test coverage detected