Index: src/cube.h ================================================================== --- src/cube.h +++ src/cube.h @@ -1,12 +1,10 @@ // one big bad include file for the whole engine... nasty! #import -#define gamma gamma__ #include -#undef gamma #include "tools.h" #define _MAXDEFSTR 260 Index: src/rendergl.m ================================================================== --- src/rendergl.m +++ src/rendergl.m @@ -1,7 +1,9 @@ // rendergl.cpp: core opengl rendering stuff +#define gamma math_gamma + #include "cube.h" #import "Command.h" #import "DynamicEntity.h" #import "Monster.h" @@ -321,10 +323,12 @@ initWithItemSize:sizeof(struct strip)]; struct strip s = { .tex = tex, .start = start, .num = n }; [strips addItem:&s]; } + +#undef gamma VARFP(gamma, 30, 100, 300, { float f = gamma / 100.0f; Uint16 ramp[256]; Index: src/tools.h ================================================================== --- src/tools.h +++ src/tools.h @@ -1,20 +1,12 @@ // generic useful stuff for any C++ program #ifndef _TOOLS_H #define _TOOLS_H -#ifdef __GNUC__ -# define gamma __gamma -#endif - #include -#ifdef __GNUC__ -# undef gamma -#endif - #include #include #include #include #include