(&mut self, texture_idx: u32)
| 12419 | // ============================================================ |
| 12420 | |
| 12421 | fn ensure_draw_state_3d(&mut self, texture_idx: u32) { |
| 12422 | let needs_new = self.draw_calls_3d.is_empty() |
| 12423 | || self.draw_calls_3d.last().unwrap().texture_idx != texture_idx; |
| 12424 | if needs_new { |
| 12425 | self.draw_calls_3d.push(DrawCall3D { |
| 12426 | texture_idx, |
| 12427 | index_start: self.indices_3d.len() as u32, |
| 12428 | }); |
| 12429 | } |
| 12430 | } |
| 12431 | |
| 12432 | pub fn set_texture_3d(&mut self, texture_idx: u32) { |
| 12433 | self.current_texture_3d = texture_idx; |
no test coverage detected