(
material: f64,
mesh_handle: f64,
mesh_idx: f64,
x: f64, y: f64, z: f64, scale: f64,
r: f64, g: f64, b: f64, a: f64,
)
| 1520 | |
| 1521 | #[no_mangle] |
| 1522 | pub extern "C" fn bloom_draw_material( |
| 1523 | material: f64, |
| 1524 | mesh_handle: f64, |
| 1525 | mesh_idx: f64, |
| 1526 | x: f64, y: f64, z: f64, scale: f64, |
| 1527 | r: f64, g: f64, b: f64, a: f64, |
| 1528 | ) { |
| 1529 | let eng = engine(); |
| 1530 | let handle_bits = mesh_handle.to_bits(); |
| 1531 | if let Some(model) = eng.models.get(mesh_handle) { |
| 1532 | eng.renderer.cache_model_if_static(handle_bits, &model.meshes); |
| 1533 | } |
| 1534 | eng.renderer.submit_material_draw( |
| 1535 | material as u32, |
| 1536 | handle_bits, |
| 1537 | mesh_idx as usize, |
| 1538 | [x as f32, y as f32, z as f32], |
| 1539 | scale as f32, |
| 1540 | [(r / 255.0) as f32, (g / 255.0) as f32, (b / 255.0) as f32, (a / 255.0) as f32], |
| 1541 | ); |
| 1542 | } |
| 1543 | |
| 1544 | #[no_mangle] |
| 1545 | pub extern "C" fn bloom_load_model_animation(path_ptr: *const u8) -> f64 { |
nothing calls this directly
no test coverage detected