Panda3D
|
00001 // Filename: glgsg.h 00002 // Created by: drose (09Feb04) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef GLGSG_H 00016 #define GLGSG_H 00017 00018 // This is the actual header file to include if you want to pick up 00019 // any or all of the header files in this directory as compiled to use 00020 // the "true" GL library. 00021 00022 #include "pandabase.h" 00023 #include "config_glgsg.h" 00024 00025 #define GLP(name) gl##name 00026 #define CLP(name) GL##name 00027 #define GLPREFIX_QUOTED "gl" 00028 #define CLASSPREFIX_QUOTED "GL" 00029 #define GLSYSTEM_NAME "OpenGL" 00030 #define CONFIGOBJ config_glgsg 00031 #define GLCAT glgsg_cat 00032 #define EXPCL_GL EXPCL_PANDAGL 00033 #define EXPTP_GL EXPTP_PANDAGL 00034 00035 #if MIN_GL_VERSION_MAJOR > 1 || (MIN_GL_VERSION_MAJOR == 1 && MIN_GL_VERSION_MINOR >= 2) 00036 #define EXPECT_GL_VERSION_1_2 00037 #endif 00038 00039 #if MIN_GL_VERSION_MAJOR > 1 || (MIN_GL_VERSION_MAJOR == 1 && MIN_GL_VERSION_MINOR >= 3) 00040 #define EXPECT_GL_VERSION_1_3 00041 #endif 00042 00043 #if MIN_GL_VERSION_MAJOR > 1 || (MIN_GL_VERSION_MAJOR == 1 && MIN_GL_VERSION_MINOR >= 4) 00044 #define EXPECT_GL_VERSION_1_4 00045 #endif 00046 00047 #if MIN_GL_VERSION_MAJOR > 1 || (MIN_GL_VERSION_MAJOR == 1 && MIN_GL_VERSION_MINOR >= 5) 00048 #define EXPECT_GL_VERSION_1_5 00049 #endif 00050 00051 #if MIN_GL_VERSION_MAJOR > 2 || (MIN_GL_VERSION_MAJOR == 2 && MIN_GL_VERSION_MINOR >= 0) 00052 #define EXPECT_GL_VERSION_2_0 00053 #endif 00054 00055 #if MIN_GL_VERSION_MAJOR > 2 || (MIN_GL_VERSION_MAJOR == 2 && MIN_GL_VERSION_MINOR >= 1) 00056 #define EXPECT_GL_VERSION_2_1 00057 #endif 00058 00059 // Before including gl.h, need to include windows.h 00060 #if defined(_WIN32) 00061 #define WIN32_LEAN_AND_MEAN 1 00062 #include <windows.h> 00063 #endif 00064 00065 // This prevents glext.h from getting included by gl.h 00066 // That way, we can provide our own, better version. 00067 #define __glext_h_ 00068 #define GL_GLEXT_VERSION 0 00069 00070 #ifdef IS_OSX 00071 #include <OpenGL/gl.h> 00072 #else 00073 #include <GL/gl.h> 00074 #endif 00075 00076 #undef GL_GLEXT_VERSION 00077 #include "panda_glext.h" 00078 00079 #include "glstuff_src.h" 00080 00081 #endif // GLGSG_H