Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

gl.h

Go to the documentation of this file.
00001 // gl.h
00002 //
00003 // Why is this file necessary?  Because Microsoft requires us to include
00004 // windows.h before including the GL headers, even though GL is a
00005 // cross-platform API.  So, we encapsulate the resulting #ifdef nonsense
00006 // in this file.
00007 // 
00008 // Copyright (C) 2001, Chris Laurel <claurel@shatters.net>
00009 //
00010 // This program is free software; you can redistribute it and/or
00011 // modify it under the terms of the GNU General Public License
00012 // as published by the Free Software Foundation; either version 2
00013 // of the License, or (at your option) any later version.
00014 
00015 #ifndef _GL_H_
00016 #define _GL_H_
00017 
00018 #ifdef _WIN32
00019 
00020 #ifdef _MSC_VER
00021 #if _MSC_VER > 1000
00022 #pragma once
00023 #endif // _MSC_VER > 1000
00024 
00025 #define WIN32_LEAN_AND_MEAN             // Exclude rarely-used stuff from Windows headers
00026 
00027 #include <windows.h>
00028 #endif // _MSC_VER
00029 
00030 #endif
00031 
00032 #ifndef MACOSX
00033 #define GL_ARB_multitexture
00034 #include <GL/gl.h>
00035 #undef GL_ARB_multitexture
00036 #include <GL/glu.h>
00037 #else
00038 #include <OpenGL/gl.h>
00039 #include <OpenGL/glu.h>
00040 #endif
00041 
00042 #endif // _GL_H_
00043 

Generated on Sat Jan 14 22:30:27 2006 for Celestia by  doxygen 1.4.1