MCPcopy Create free account
hub / github.com/17cupsofcoffee/nova / State

Class State

src/graphics.rs:30–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28use crate::window::Window;
29
30struct 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)]
42pub struct Graphics {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected