diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-01-20 08:47:05 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-01-20 08:47:05 -0500 |
commit | d6469d0cafc03c468c5977ec345d08b3ccb6fd0a (patch) | |
tree | c9b21ddcae956cc9d419d4d56997063eb95fc5f4 /include/common.h | |
parent | 1e6676c35ce4990981e8cda389ba39108437d66d (diff) | |
parent | c1774c591f7897c1cfa28e05fdb7c72e07890933 (diff) |
merge, particles
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/include/common.h b/include/common.h index fa7356a..0df6533 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). */ |