(
material: f64,
mesh_handle: f64,
mesh_idx: f64,
x: f64, y: f64, z: f64, scale: f64,
r: f64, g: f64, b: f64, a: f64,
)
| 1914 | |
| 1915 | #[no_mangle] |
| 1916 | pub extern "C" fn bloom_draw_material( |
| 1917 | material: f64, |
| 1918 | mesh_handle: f64, |
| 1919 | mesh_idx: f64, |
| 1920 | x: f64, y: f64, z: f64, scale: f64, |
| 1921 | r: f64, g: f64, b: f64, a: f64, |
| 1922 | ) { |
| 1923 | let eng = engine(); |
| 1924 | let handle_bits = mesh_handle.to_bits(); |
| 1925 | if let Some(model) = eng.models.get(mesh_handle) { |
| 1926 | eng.renderer.cache_model_if_static(handle_bits, &model.meshes); |
| 1927 | } |
| 1928 | eng.renderer.submit_material_draw( |
| 1929 | material as u32, |
| 1930 | handle_bits, |
| 1931 | mesh_idx as usize, |
| 1932 | [x as f32, y as f32, z as f32], |
| 1933 | scale as f32, |
| 1934 | [(r / 255.0) as f32, (g / 255.0) as f32, (b / 255.0) as f32, (a / 255.0) as f32], |
| 1935 | ); |
| 1936 | } |
| 1937 | |
| 1938 | #[no_mangle] |
| 1939 | pub extern "C" fn bloom_create_mesh(vertex_ptr: *const f64, vertex_count: f64, index_ptr: *const f64, index_count: f64) -> f64 { |
nothing calls this directly
no test coverage detected