(&self, target: &impl Target, color: Color)
| 80 | } |
| 81 | |
| 82 | pub fn clear(&self, target: &impl Target, color: Color) { |
| 83 | unsafe { |
| 84 | target.bind(self); |
| 85 | |
| 86 | self.state |
| 87 | .gl |
| 88 | .clear_color(color.r, color.g, color.b, color.a); |
| 89 | |
| 90 | self.state.gl.clear(glow::COLOR_BUFFER_BIT); |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | pub fn draw<T>(&self, pass: RenderPass<'_, T>) |
| 95 | where |