aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h
index e1b536f..f32aad0 100644
--- a/include/common.h
+++ b/include/common.h
@@ -15,7 +15,8 @@ typedef struct{float x; float y;}vec2;
#include <World.h>
#define SCREEN_WIDTH 1280
-#define SCREEN_HEIGHT 800
+#define SCREEN_HEIGHT 720
+#define SCREEN_RATIO (float)SCREEN_WIDTH/(float)SCREEN_HEIGHT
//#define FULLSCREEN
#define HLINE (2.0f / (SCREEN_WIDTH / 4))
@@ -23,6 +24,9 @@ typedef struct{float x; float y;}vec2;
#define irand srand
#define grand rand
+template<typename T, size_t N>
+int eAmt(T (&)[N]){return N;}
+
//SDL VARIABLES
extern SDL_Window *window;
extern SDL_Surface *renderSurface;