diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-10 11:30:41 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-10 11:30:41 -0400 |
commit | 3fde0e7edf310245e5658b767840e742c9341597 (patch) | |
tree | 3fcbf69ecb959bb078078166484608e645f33f33 /include/common.h | |
parent | b6ee2b7c296abcfff1ae7f7ac4db976dc4d6fd8e (diff) |
yeah
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 57 |
1 files changed, 31 insertions, 26 deletions
diff --git a/include/common.h b/include/common.h index 816de5a..782ebd6 100644 --- a/include/common.h +++ b/include/common.h @@ -1,26 +1,31 @@ -#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_image.h> -#include <SDL2/SDL_opengl.h> -#include <UIClass.h> -#include <World.h> - -#define SCREEN_WIDTH 640 -#define SCREEN_HEIGHT 480 -//#define FULLSCREEN - -//SDL VARIABLES -extern SDL_Window *window; -extern SDL_Surface *renderSurface; -extern SDL_GLContext mainGLContext; - -//WINODWS VARIABLES -extern bool gameRunning; - -#endif // COMMON_H +#ifndef COMMON_H
+#define COMMON_H
+
+typedef struct{float x; float y;}vec2;
+
+///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_image.h>
+#include <SDL2/SDL_opengl.h>
+#include <UIClass.h>
+#include <entities.h>
+#include <World.h>
+
+#define SCREEN_WIDTH 1280
+#define SCREEN_HEIGHT 800
+#define FULLSCREEN
+
+
+
+//SDL VARIABLES
+extern SDL_Window *window;
+extern SDL_Surface *renderSurface;
+extern SDL_GLContext mainGLContext;
+
+//WINODWS VARIABLES
+extern bool gameRunning;
+
+#endif // COMMON_H
|