(&mut self, bind_group_idx: u32, x: f64, y: f64, tint_r: f64, tint_g: f64, tint_b: f64, tint_a: f64)
| 11979 | } |
| 11980 | |
| 11981 | pub fn draw_texture(&mut self, bind_group_idx: u32, x: f64, y: f64, tint_r: f64, tint_g: f64, tint_b: f64, tint_a: f64) { |
| 11982 | let (tw, th) = self.texture_sizes.get(bind_group_idx as usize).copied().unwrap_or((0, 0)); |
| 11983 | if tw == 0 { return; } |
| 11984 | let color = Self::color_to_f32(tint_r, tint_g, tint_b, tint_a); |
| 11985 | self.draw_textured_quad(x as f32, y as f32, tw as f32, th as f32, 0.0, 0.0, 1.0, 1.0, color, bind_group_idx); |
| 11986 | } |
| 11987 | |
| 11988 | pub fn draw_texture_rec( |
| 11989 | &mut self, bind_group_idx: u32, |
no test coverage detected