| 28 | use crate::window::Window; |
| 29 | |
| 30 | struct State { |
| 31 | gl: Arc<Context>, |
| 32 | |
| 33 | vao: glow::NativeVertexArray, |
| 34 | current_vertex_buffer: Cell<Option<glow::Buffer>>, |
| 35 | current_index_buffer: Cell<Option<glow::Buffer>>, |
| 36 | current_shader: Cell<Option<glow::Program>>, |
| 37 | current_texture: Cell<Option<glow::Texture>>, |
| 38 | current_canvas: Cell<Option<glow::Framebuffer>>, |
| 39 | } |
| 40 | |
| 41 | #[derive(Clone)] |
| 42 | pub struct Graphics { |
nothing calls this directly
no outgoing calls
no test coverage detected