diff options
Diffstat (limited to 'examples/render/src/main.rs')
-rw-r--r-- | examples/render/src/main.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/examples/render/src/main.rs b/examples/render/src/main.rs index efb0e41..044da4f 100644 --- a/examples/render/src/main.rs +++ b/examples/render/src/main.rs @@ -45,5 +45,13 @@ fn main() { let window = Window::new(&events).unwrap(); // Create the renderer. - let renderer = Renderer::new(world, &window); + let mut renderer = Renderer::new(world, &window).unwrap(); + + loop { + // TODO: Poll Window events + // TODO: Handle resize + // TODO: Simulate world + + renderer.render_frame().unwrap(); + } } |