(
material: f64,
mesh_handle: f64,
mesh_idx: f64,
x: f64, y: f64, z: f64, scale: f64,
r: f64, g: f64, b: f64, a: f64,
)
| 2453 | |
| 2454 | #[no_mangle] |
| 2455 | pub extern "C" fn bloom_draw_material( |
| 2456 | material: f64, |
| 2457 | mesh_handle: f64, |
| 2458 | mesh_idx: f64, |
| 2459 | x: f64, y: f64, z: f64, scale: f64, |
| 2460 | r: f64, g: f64, b: f64, a: f64, |
| 2461 | ) { |
| 2462 | let eng = engine(); |
| 2463 | let handle_bits = mesh_handle.to_bits(); |
| 2464 | if let Some(model) = eng.models.get(mesh_handle) { |
| 2465 | eng.renderer.cache_model_if_static(handle_bits, &model.meshes); |
| 2466 | } |
| 2467 | eng.renderer.submit_material_draw( |
| 2468 | material as u32, |
| 2469 | handle_bits, |
| 2470 | mesh_idx as usize, |
| 2471 | [x as f32, y as f32, z as f32], |
| 2472 | scale as f32, |
| 2473 | [(r / 255.0) as f32, (g / 255.0) as f32, (b / 255.0) as f32, (a / 255.0) as f32], |
| 2474 | ); |
| 2475 | } |
| 2476 | |
| 2477 | #[no_mangle] |
| 2478 | pub extern "C" fn bloom_load_model_animation(path_ptr: *const u8) -> f64 { |
nothing calls this directly
no test coverage detected