aboutsummaryrefslogtreecommitdiff
path: root/src/rms.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rms.hpp')
-rw-r--r--src/rms.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/rms.hpp b/src/rms.hpp
new file mode 100644
index 0000000..d674409
--- /dev/null
+++ b/src/rms.hpp
@@ -0,0 +1,16 @@
+#pragma once
+#include "opengl/renderer.hpp"
+#include "hud/hud.hpp"
+
+#define WIDTH 1200
+#define HEIGHT 800
+
+
+typedef struct APP_CONTEXT {
+ Renderer renderer;
+ HUD hud;
+}APP_CONTEXT;
+
+extern APP_CONTEXT *AppContext;
+#define USE_CONTEXT(x)\
+ if(AppContext!=nullptr){AppContext->x;}