diff options
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 |