aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/UIClass.h11
-rw-r--r--include/common.h24
2 files changed, 35 insertions, 0 deletions
diff --git a/include/UIClass.h b/include/UIClass.h
new file mode 100644
index 0000000..c5d74c3
--- /dev/null
+++ b/include/UIClass.h
@@ -0,0 +1,11 @@
+#ifndef UICLASS_H
+#define UICLASS_H
+
+#include <common.h>
+
+class UIClass {
+ public:
+ void handleEvents();
+};
+
+#endif // UICLASS_H
diff --git a/include/common.h b/include/common.h
new file mode 100644
index 0000000..db0824b
--- /dev/null
+++ b/include/common.h
@@ -0,0 +1,24 @@
+#ifndef COMMON_H
+#define COMMON_H
+
+///THIS FILE IS USED FOR VARIABLES THAT WILL BE ACCESED BY MULTIPLE CLASSES/FILES
+
+#include <iostream>
+#include <cstdlib>
+#include <SDL2/SDL.h>
+#include <SDL2/SDL_opengl.h>
+#include <UIClass.h>
+
+#define SCREEN_WIDTH 1280
+#define SCREEN_HEIGHT 720
+//#define FULLSCREEN
+
+//SDL VARIABLES
+extern SDL_Window *window;
+extern SDL_Surface *renderSurface;
+extern SDL_GLContext mainGLContext;
+
+//WINODWS VARIABLES
+extern bool gameRunning;
+
+#endif // COMMON_H