aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2016-01-19 07:33:46 -0500
committerdrumsetmonkey <abelleisle@roadrunner.com>2016-01-19 07:33:46 -0500
commitfbd4ddbab2cc3a713430483b24642cbbc7050f0c (patch)
tree4fa2c7875240621b17f0dcf74d67066190dd7445 /include/common.h
parent1eced16d75322832617a1b42ec94580a9713e8f0 (diff)
Stuff
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/include/common.h b/include/common.h
index ae832f1..f5952eb 100644
--- a/include/common.h
+++ b/include/common.h
@@ -30,14 +30,22 @@ typedef unsigned int uint;
#undef near
#endif
-#include <Texture.h>
-
/**
* This flag lets the compiler know that we want to use shaders.
*/
#define SHADERS
+template<typename N>
+N abso(N v){
+ if(v < 0.0){
+ return v * -1;
+ }else
+ return v;
+}
+
+extern GLuint colorIndex;
+
/**
* This structure contains a set of coordinates for ease of coding.
*/
@@ -68,6 +76,8 @@ typedef struct{
float blue;
} Color;
+#include <Texture.h>
+
/**
* Define the game's name (displayed in the window title).
*/