comparison include/SDL_opengl.h @ 932:66761191fc11

Use the canonical glext.h on MacOS X as well (#define NO_SDL_GLEXT if you don't want this)
author Sam Lantinga <slouken@libsdl.org>
date Fri, 20 Aug 2004 22:32:05 +0000
parents 748f441d7d9f
children 2ab21d9a20da
comparison
equal deleted inserted replaced
931:abe872771687 932:66761191fc11
32 #ifndef NOMINMAX 32 #ifndef NOMINMAX
33 #define NOMINMAX /* Don't defined min() and max() */ 33 #define NOMINMAX /* Don't defined min() and max() */
34 #endif 34 #endif
35 #include <windows.h> 35 #include <windows.h>
36 #endif 36 #endif
37 #ifndef NO_SDL_GLEXT
38 #define __glext_h_ /* Don't let gl.h include glext.h */
39 #endif
37 #if defined(__APPLE__) && defined(__MACH__) 40 #if defined(__APPLE__) && defined(__MACH__)
38 #include <OpenGL/gl.h> /* Header File For The OpenGL Library */ 41 #include <OpenGL/gl.h> /* Header File For The OpenGL Library */
39 #include <OpenGL/glu.h> /* Header File For The GLU Library */ 42 #include <OpenGL/glu.h> /* Header File For The GLU Library */
40 #else 43 #else
41 #ifndef NO_SDL_GLEXT
42 #define __glext_h_ /* Don't let gl.h include glext.h */
43 #endif
44 #include <GL/gl.h> /* Header File For The OpenGL Library */ 44 #include <GL/gl.h> /* Header File For The OpenGL Library */
45 #include <GL/glu.h> /* Header File For The GLU Library */ 45 #include <GL/glu.h> /* Header File For The GLU Library */
46 #endif
46 #ifndef NO_SDL_GLEXT 47 #ifndef NO_SDL_GLEXT
47 #undef __glext_h_ 48 #undef __glext_h_
48 #endif
49 #endif 49 #endif
50 50
51 /* This file taken from "GLext.h" from the Jeff Molofee OpenGL tutorials. 51 /* This file taken from "GLext.h" from the Jeff Molofee OpenGL tutorials.
52 It is included here because glext.h is not available on some systems. 52 It is included here because glext.h is not available on some systems.
53 If you don't want this version included, simply define "NO_SDL_GLEXT" 53 If you don't want this version included, simply define "NO_SDL_GLEXT"