(
handle: f64,
src_x: f64, src_y: f64, src_w: f64, src_h: f64,
dst_x: f64, dst_y: f64,
r: f64, g: f64, b: f64, a: f64,
)
| 1857 | |
| 1858 | #[no_mangle] |
| 1859 | pub extern "C" fn bloom_draw_texture_rec( |
| 1860 | handle: f64, |
| 1861 | src_x: f64, src_y: f64, src_w: f64, src_h: f64, |
| 1862 | dst_x: f64, dst_y: f64, |
| 1863 | r: f64, g: f64, b: f64, a: f64, |
| 1864 | ) { |
| 1865 | let eng = engine(); |
| 1866 | if let Some(tex) = eng.textures.get(handle) { |
| 1867 | let idx = tex.bind_group_idx; |
| 1868 | eng.renderer.draw_texture_rec(idx, src_x, src_y, src_w, src_h, dst_x, dst_y, r, g, b, a); |
| 1869 | } |
| 1870 | } |
| 1871 | |
| 1872 | #[no_mangle] |
| 1873 | pub extern "C" fn bloom_get_texture_width(handle: f64) -> f64 { |
nothing calls this directly
no test coverage detected