(
handle: f64,
src_x: f64, src_y: f64, src_w: f64, src_h: f64,
dst_x: f64, dst_y: f64,
tint_r: f64, tint_g: f64, tint_b: f64, tint_a: f64,
)
| 945 | |
| 946 | #[no_mangle] |
| 947 | pub extern "C" fn bloom_draw_texture_rec( |
| 948 | handle: f64, |
| 949 | src_x: f64, src_y: f64, src_w: f64, src_h: f64, |
| 950 | dst_x: f64, dst_y: f64, |
| 951 | tint_r: f64, tint_g: f64, tint_b: f64, tint_a: f64, |
| 952 | ) { |
| 953 | let eng = engine(); |
| 954 | if let Some(tex) = eng.textures.get(handle) { |
| 955 | let bind_group_idx = tex.bind_group_idx; |
| 956 | eng.renderer.draw_texture_rec( |
| 957 | bind_group_idx, |
| 958 | src_x, src_y, src_w, src_h, |
| 959 | dst_x, dst_y, |
| 960 | tint_r, tint_g, tint_b, tint_a, |
| 961 | ); |
| 962 | } |
| 963 | } |
| 964 | |
| 965 | #[no_mangle] |
| 966 | pub extern "C" fn bloom_get_texture_width(handle: f64) -> f64 { |
nothing calls this directly
no test coverage detected