aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-09-07 15:28:36 -0400
committerClyne Sullivan <tullivan99@gmail.com>2015-09-07 15:28:36 -0400
commit51e40764ce718283c89422cd5e3d02d324c7d16c (patch)
tree74643c465b7d39f2a22840c6523c2aad77edcde4 /include/common.h
parentebf6608e077c8d76d7f189c93a40e9f55ce630ff (diff)
Hey
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h24
1 files changed, 24 insertions, 0 deletions
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