diff options
Diffstat (limited to 'src/gameHeader.h')
-rw-r--r-- | src/gameHeader.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/gameHeader.h b/src/gameHeader.h new file mode 100644 index 0000000..f289527 --- /dev/null +++ b/src/gameHeader.h @@ -0,0 +1,23 @@ +///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" //This can access SDL_Event e, if it won't compile for you, move it down to right above the ui object definition I guess :P + +//SDL VARIABLES +SDL_Window *window = NULL; +SDL_Surface *renderSurface = NULL; +SDL_GLContext mainGLContext = NULL; + +//WINODWS VARIABLES +const float sh = SCREEN_HEIGHT; +const float sw = SCREEN_WIDTH; +bool gameRunning = true; +SDL_Event e; + +//OTHER VARIABLES +UIClass ui; + +//FUNCTIONS |