Changeset 13041 for OpenSceneGraph/trunk/include/osg/GL
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/GL (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/GL
r13040 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 43 43 #ifndef WIN32 44 44 45 // Required for compatibility with glext.h sytle function definitions of 45 // Required for compatibility with glext.h sytle function definitions of 46 46 // OpenGL extensions, such as in src/osg/Point.cpp. 47 47 #ifndef APIENTRY … … 57 57 #define APIENTRY __stdcall 58 58 #endif 59 // XXX This is from Win32's <windef.h> 59 // XXX This is from Win32's <windef.h> 60 60 #ifndef CALLBACK 61 61 #define CALLBACK __stdcall … … 65 65 66 66 // Under Windows avoid including <windows.h> 67 // to avoid name space pollution, but Win32's <GL/gl.h> 68 // needs APIENTRY and WINGDIAPI defined properly. 69 // XXX This is from Win32's <windef.h> 67 // to avoid name space pollution, but Win32's <GL/gl.h> 68 // needs APIENTRY and WINGDIAPI defined properly. 69 // XXX This is from Win32's <windef.h> 70 70 #ifndef APIENTRY 71 71 #define GLUT_APIENTRY_DEFINED … … 78 78 #endif 79 79 80 // XXX This is from Win32's <windef.h> 80 // XXX This is from Win32's <windef.h> 81 81 #ifndef CALLBACK 82 82 #if (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) … … 89 89 #endif // __CYGWIN__ 90 90 91 // XXX This is from Win32's <wingdi.h> and <winnt.h> 91 // XXX This is from Win32's <wingdi.h> and <winnt.h> 92 92 #ifndef WINGDIAPI 93 93 #define GLUT_WINGDIAPI_DEFINED … … 95 95 #define WINGDIAPI DECLSPEC_IMPORT 96 96 #endif 97 97 98 98 // XXX This is from Win32's <ctype.h> 99 99 #if !defined(_WCHAR_T_DEFINED) && !(defined(__GNUC__)&&((__GNUC__ == 3)||(__GNUC__ == 4))) … … 190 190 #ifdef OSG_GL1_AVAILABLE 191 191 #define OSG_GL1_FEATURES true 192 #else 192 #else 193 193 #define OSG_GL1_FEATURES false 194 194 #endif … … 196 196 #ifdef OSG_GL2_AVAILABLE 197 197 #define OSG_GL2_FEATURES true 198 #else 198 #else 199 199 #define OSG_GL2_FEATURES false 200 200 #endif … … 202 202 #ifdef OSG_GL3_AVAILABLE 203 203 #define OSG_GL3_FEATURES true 204 #else 204 #else 205 205 #define OSG_GL3_FEATURES false 206 206 #endif … … 208 208 #ifdef OSG_GLES1_AVAILABLE 209 209 #define OSG_GLES1_FEATURES true 210 #else 210 #else 211 211 #define OSG_GLES1_FEATURES false 212 212 #endif … … 214 214 #ifdef OSG_GLES2_AVAILABLE 215 215 #define OSG_GLES2_FEATURES true 216 #else 216 #else 217 217 #define OSG_GLES2_FEATURES false 218 218 #endif
