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

Method clear

src/graphics.rs:82–92  ·  view source on GitHub ↗
(&self, target: &impl Target, color: Color)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

bindMethod · 0.45

Tested by

no test coverage detected