+/*
+Copyright (C) 2003, 2010 - Wolfire Games
+
+This file is part of Lugaru.
+
+Lugaru is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+Lugaru is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with Lugaru. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#ifndef _LUGARU_GL_H_
#define _LUGARU_GL_H_
#include <map>
#include <string>
-#ifndef WIN32
- #if PLATFORM_UNIX
- #define GL_GLEXT_PROTOTYPES
- #include "gl.h"
- #include "glu.h"
- #include "glext.h"
- #else
- #include <gl.h>
- #include <glu.h>
- #include <glext.h>
- #endif
-#else
+#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#define Polygon WinPolygon
#include <windows.h>
#undef Polygon
- #define GL_GLEXT_PROTOTYPES
- #include <gl/gl.h>
- #include <gl/glu.h>
- #include <gl/glaux.h>
- #include <gl/glext.h>
- #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