X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2Fgamegl.h;h=fc062c053e57cf9e65bd7906af59dad2acb09051;hb=8afdcba610cded0e54b85069ba051268b29669a6;hp=c88278a1abd6a4682983680a0f2bdb0cff4ef48e;hpb=44146d06c780d3aaa283672fedb08b8870ebe1b9;p=lugaru.git diff --git a/Source/gamegl.h b/Source/gamegl.h index c88278a..fc062c0 100644 --- a/Source/gamegl.h +++ b/Source/gamegl.h @@ -30,47 +30,24 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include #include -#ifndef WIN32 - #if PLATFORM_UNIX - #define GL_GLEXT_PROTOTYPES - #include "gl.h" - #include "glu.h" - #include "glext.h" - #else - #include - #include - #include - #endif -#else +#ifdef WIN32 #define WIN32_LEAN_AND_MEAN #define Polygon WinPolygon #include #undef Polygon - #define GL_GLEXT_PROTOTYPES - #include - #include - #include - #include - #include "MacCompatibility.h" - #include "il/ilut.h" - - #define glDeleteTextures( a, b) glDeleteTextures( (a), (const unsigned int *)(b) ); #endif -#if !PLATFORM_MACOSX -struct RGBColor -{ - unsigned short red; - unsigned short green; - unsigned short blue; -}; -typedef struct RGBColor RGBColor; -typedef RGBColor * RGBColorPtr; -#endif +#define GL_GLEXT_PROTOTYPES 1 +#include "GL/gl.h" +#include "GL/glu.h" +#include "GL/glext.h" +#include "MacCompatibility.h" using namespace std; -#include "logger/logger.h" +/* !!! FIXME: until we replace logger better. --ryan. */ +#define LOGFUNC +void LOG(const std::string &fmt, ...); #endif