summaryrefslogtreecommitdiff
path: root/source/dw/app/ini.rs
diff options
context:
space:
mode:
Diffstat (limited to 'source/dw/app/ini.rs')
-rw-r--r--source/dw/app/ini.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/source/dw/app/ini.rs b/source/dw/app/ini.rs
new file mode 100644
index 0000000..d064259
--- /dev/null
+++ b/source/dw/app/ini.rs
@@ -0,0 +1,20 @@
+// Copyright 2023 Gabriel Jensen.
+
+use crate::dw::app::App;
+use crate::dw::VER;
+
+extern crate glfw;
+
+impl App {
+ pub fn ini(&mut self) -> i8 {
+ eprintln!("DeltaWorld {}.{}.{}",VER.maj,VER.min,VER.pat);
+
+ let mut gfx = self.inigfx();
+
+ while !gfx.win.should_close() {
+ gfx.glfw.poll_events();
+ }
+
+ return 0x45;
+ }
+}