diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-18 21:25:04 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-18 21:25:04 -0400 |
commit | a94372de8746229705e38eea66ce42f0a1ad3dba (patch) | |
tree | c5534f9c5ea892c4e940f66e5de47b7cb1057c9b /include | |
parent | c38029fa3d4fd7488c2bd9236eec86aff4448314 (diff) |
gettin' there
Diffstat (limited to 'include')
-rw-r--r-- | include/common.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index 362b1f9..c147d88 100644 --- a/include/common.h +++ b/include/common.h @@ -9,15 +9,27 @@ #include <SDL2/SDL_image.h> #include <SDL2/SDL_opengl.h> +typedef struct { float x; float y; } vec2; + +#include <entities.h> + #define SCREEN_WIDTH 1280 #define SCREEN_HEIGHT 720 //#define FULLSCREEN #define HLINE 2 +#define initRand(s) srand(s) +#define getRand() rand() + +template<typename T, size_t N> +int eAmt(T (&)[N]){return N;} + //SDL VARIABLES extern SDL_Window *window; extern SDL_Surface *renderSurface; extern SDL_GLContext mainGLContext; +extern bool gameRunning; + #endif // COMMON_H |