aboutsummaryrefslogtreecommitdiff
path: root/examples/render/src/main.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:19 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:19 +0100
commit95cc5ed06b4e251fd560958fe6f53d11d3bf31cd (patch)
tree29e28be74667d4fc526fe85558e5311212ffaff6 /examples/render/src/main.rs
parent6770b306fc0b14a96b29281f9b46ea3e912d339b (diff)
[wip] feat(render): add draw_triangle function
currently broken
Diffstat (limited to 'examples/render/src/main.rs')
-rw-r--r--examples/render/src/main.rs10
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();
+ }
}