summaryrefslogtreecommitdiff
path: root/ui/mainApplication.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-06-15 17:35:13 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-06-15 17:35:13 +0100
commit321103ea84cf61f58a26d59700284d84f11833f5 (patch)
treedb90e2d4694702d518dae28c5c7eb48e7ca46283 /ui/mainApplication.h
parentFirst cut reshuffling app/window/gl/render bits (diff)
downloadilt-321103ea84cf61f58a26d59700284d84f11833f5.tar.bz2
ilt-321103ea84cf61f58a26d59700284d84f11833f5.tar.xz
ilt-321103ea84cf61f58a26d59700284d84f11833f5.zip
Move main application loop into the library
Diffstat (limited to 'ui/mainApplication.h')
-rw-r--r--ui/mainApplication.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/ui/mainApplication.h b/ui/mainApplication.h
new file mode 100644
index 0000000..a6cb126
--- /dev/null
+++ b/ui/mainApplication.h
@@ -0,0 +1,18 @@
+#pragma once
+
+#include "applicationBase.h"
+#include "collection.h"
+#include "window.h"
+
+class MainApplication : public ApplicationBase {
+public:
+ using Windows = Collection<Window>;
+ void mainLoop();
+
+protected:
+ Windows windows;
+
+private:
+ void processInputs();
+ bool isRunning {true};
+};