diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-29 08:09:06 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-29 08:09:06 -0400 |
commit | 33ad7fe2203d93f3721b1e22faf94527b78f0f71 (patch) | |
tree | 063b5b02ca8e9141fb383e7375592e24aff1ba01 /include/common.h | |
parent | 34e2794d647447f6ddb29419abbe2f44593ba1fa (diff) |
readded readme, fixed world handling w/ interpolation
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/common.h b/include/common.h index 1210adb..4f7ba48 100644 --- a/include/common.h +++ b/include/common.h @@ -11,7 +11,12 @@ #include <SDL2/SDL_opengl.h> typedef struct { float x; float y; } vec2; -enum _TYPE {STRUCTURET = -1, PLAYERT = 0, NPCT = 1}; //these are the main types of entities + +enum _TYPE { //these are the main types of entities + STRUCTURET = -1, + PLAYERT = 0, + NPCT = 1 +}; #include <entities.h> @@ -27,11 +32,7 @@ enum _TYPE {STRUCTURET = -1, PLAYERT = 0, NPCT = 1}; //these are the main types template<typename T, size_t N> //this fuction returns the size of any array int eAmt(T (&)[N]){return N;} -//SDL VARIABLES -extern SDL_Window *window; -extern SDL_Surface *renderSurface; -extern SDL_GLContext mainGLContext; - extern bool gameRunning; +extern unsigned int deltaTime; #endif // COMMON_H |