(
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,
)
| 949 | |
| 950 | #[no_mangle] |
| 951 | pub extern "C" fn bloom_draw_texture_rec( |
| 952 | handle: f64, |
| 953 | src_x: f64, src_y: f64, src_w: f64, src_h: f64, |
| 954 | dst_x: f64, dst_y: f64, |
| 955 | r: f64, g: f64, b: f64, a: f64, |
| 956 | ) { |
| 957 | let eng = engine(); |
| 958 | if let Some(tex) = eng.textures.get(handle) { |
| 959 | let idx = tex.bind_group_idx; |
| 960 | eng.renderer.draw_texture_rec(idx, src_x, src_y, src_w, src_h, dst_x, dst_y, r, g, b, a); |
| 961 | } |
| 962 | } |
| 963 | |
| 964 | #[no_mangle] |
| 965 | pub extern "C" fn bloom_get_texture_width(handle: f64) -> f64 { |
no test coverage detected