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

Method bind

src/graphics.rs:271–277  ·  view source on GitHub ↗
(&self, gfx: &Graphics)

Source from the content-addressed store, hash-verified

269 const FLIPPED: bool = false;
270
271 fn bind(&self, gfx: &Graphics) {
272 gfx.bind_canvas(None);
273
274 unsafe {
275 gfx.state.gl.front_face(glow::CCW);
276 }
277 }
278
279 fn size(&self) -> (i32, i32) {
280 let (width, height) = self.size();

Callers 2

clearMethod · 0.45
drawMethod · 0.45

Calls 1

bind_canvasMethod · 0.80

Tested by

no test coverage detected