diff options
Diffstat (limited to 'source/dw/app/lop.rs')
-rw-r--r-- | source/dw/app/lop.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source/dw/app/lop.rs b/source/dw/app/lop.rs new file mode 100644 index 0000000..af3e81c --- /dev/null +++ b/source/dw/app/lop.rs @@ -0,0 +1,21 @@ +// Copyright 2023 Gabriel Jensen. + +use crate::dw::app::App; +use crate::dw::app::Gfx; + +//extern crate gl; +extern crate glfw; + +use glfw::{Context}; + +impl App { + pub fn lop(&mut self,gfx: &mut Gfx) -> i8 { + eprintln!("entering main loop"); + + while !gfx.win.should_close() { + gfx.glfw.poll_events(); + } + + return -0x45; + } +} |