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

Method draw

examples/bunnymark.rs:128–137  ·  view source on GitHub ↗
(&mut self, app: &mut App)

Source from the content-addressed store, hash-verified

126 }
127
128 fn draw(&mut self, app: &mut App) {
129 app.gfx.clear(&app.window, Color::rgb(0.392, 0.584, 0.929));
130
131 for bunny in &self.bunnies {
132 self.batch
133 .texture(&self.texture, bunny.position, DrawParams::new());
134 }
135
136 self.batch.draw(&app.window);
137 }
138}

Callers

nothing calls this directly

Calls 2

clearMethod · 0.45
textureMethod · 0.45

Tested by

no test coverage detected