From a94372de8746229705e38eea66ce42f0a1ad3dba Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Fri, 18 Sep 2015 21:25:04 -0400 Subject: gettin' there --- include/common.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include') 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 #include +typedef struct { float x; float y; } vec2; + +#include + #define SCREEN_WIDTH 1280 #define SCREEN_HEIGHT 720 //#define FULLSCREEN #define HLINE 2 +#define initRand(s) srand(s) +#define getRand() rand() + +template +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 -- cgit v1.2.3