MCPcopy Create free account
hub / github.com/DeadlockCode/n-body / new

Method new

src/renderer.rs:27–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26impl quarkstrom::Renderer for Renderer {
27 fn new() -> Self {
28 Self {
29 pos: Vec2::zero(),
30 scale: 2.0,
31 seed: START_SEED,
32
33 info_window_open: true,
34 }
35 }
36
37 fn input(&mut self, input: &WinitInputHelper, width: u16, height: u16) {
38 self.info_window_open ^= input.key_pressed(VirtualKeyCode::T);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected