Mercurial > sdl-ios-xcode
comparison include/SDL_opengl.h @ 1619:e79e4c5e531b
From Anders F Bjorklund:
When switching to "UNIX-style paths" as needed for the new includes,
including <GL/gl.h> and <GL/glu.h> doesn't work anymore on Mac OS...
The two headers are really located in the OpenGL SDK 1.2 CFM like this:
OpenGL:Headers:gl.h
OpenGL:Headers:glu.h
There are also some compat copies, that *used* to work with Mac paths:
OpenGL:Headers:GL/gl.h
OpenGL:Headers:GL/glu.h
The easiest fix is to make SDL_opengl.h include the proper header names,
by adding a special case for the MACOS platform in addition to the MACOSX
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 12 Apr 2006 14:37:05 +0000 |
parents | df0bcc9c7c95 |
children | 782fd950bd46 c121d94672cb a1b03ba2fcd0 |
comparison
equal
deleted
inserted
replaced
1618:3b08574f4c60 | 1619:e79e4c5e531b |
---|---|
35 #define __glext_h_ /* Don't let gl.h include glext.h */ | 35 #define __glext_h_ /* Don't let gl.h include glext.h */ |
36 #endif | 36 #endif |
37 #if defined(__MACOSX__) | 37 #if defined(__MACOSX__) |
38 #include <OpenGL/gl.h> /* Header File For The OpenGL Library */ | 38 #include <OpenGL/gl.h> /* Header File For The OpenGL Library */ |
39 #include <OpenGL/glu.h> /* Header File For The GLU Library */ | 39 #include <OpenGL/glu.h> /* Header File For The GLU Library */ |
40 #elif defined(__MACOS__) | |
41 #include <gl.h> /* Header File For The OpenGL Library */ | |
42 #include <glu.h> /* Header File For The GLU Library */ | |
40 #else | 43 #else |
41 #include <GL/gl.h> /* Header File For The OpenGL Library */ | 44 #include <GL/gl.h> /* Header File For The OpenGL Library */ |
42 #include <GL/glu.h> /* Header File For The GLU Library */ | 45 #include <GL/glu.h> /* Header File For The GLU Library */ |
43 #endif | 46 #endif |
44 #ifndef NO_SDL_GLEXT | 47 #ifndef NO_SDL_GLEXT |