(handle: f64, anim_index: f64, time: f64, scale: f64, px: f64, py: f64, pz: f64, rot_sin: f64, rot_cos: f64)
| 2485 | |
| 2486 | #[no_mangle] |
| 2487 | pub extern "C" fn bloom_update_model_animation(handle: f64, anim_index: f64, time: f64, scale: f64, px: f64, py: f64, pz: f64, rot_sin: f64, rot_cos: f64) { |
| 2488 | let eng = engine(); |
| 2489 | eng.models.update_model_animation(handle, anim_index as usize, time as f32); |
| 2490 | if let Some(anim) = eng.models.get_animation(handle) { |
| 2491 | if !anim.joint_matrices.is_empty() { |
| 2492 | eng.renderer.set_joint_matrices_scaled(&anim.joint_matrices, scale as f32, [px as f32, py as f32, pz as f32], rot_sin as f32, rot_cos as f32); |
| 2493 | } |
| 2494 | } |
| 2495 | } |
| 2496 | |
| 2497 | #[no_mangle] |
| 2498 | pub extern "C" fn bloom_get_model_mesh_count(handle: f64) -> f64 { |
nothing calls this directly
no test coverage detected