X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2Fgamegl.h;h=38f0d4c935d47dc4ef2adec3564ccb3e493cc498;hb=d435148bf0fd538f3b69a8232253618e10249ffa;hp=77746eb85e0dfa8686cae0dbde2382043f4f2f14;hpb=36cc3af3e5074215817ddee16defde754e2ad67f;p=lugaru.git diff --git a/Source/gamegl.h b/Source/gamegl.h index 77746eb..38f0d4c 100644 --- a/Source/gamegl.h +++ b/Source/gamegl.h @@ -1,3 +1,24 @@ +/* +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. + +This program 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 this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +*/ + #ifndef _LUGARU_GL_H_ #define _LUGARU_GL_H_ @@ -10,14 +31,15 @@ #include #ifndef WIN32 - #if PLATFORM_LINUX - #include "gl.h" - #include "glu.h" - #include "glext.h" + #if PLATFORM_UNIX + #define GL_GLEXT_PROTOTYPES + #include "GL/gl.h" + #include "GL/glu.h" + #include "GL/glext.h" #else - #include - #include - #include + #include + #include + #include #endif #else #define WIN32_LEAN_AND_MEAN @@ -48,7 +70,9 @@ typedef RGBColor * RGBColorPtr; using namespace std; -#include "logger/logger.h" +/* !!! FIXME: until we replace logger better. --ryan. */ +#define LOGFUNC +void LOG(const std::string &fmt, ...); #endif