[SDL] Can't #include <GL/GL.h> on Mac
Richard Schreyer
rws_list at girr.org
Thu Jun 8 10:52:38 PDT 2006
On Jun 8, 2006, at 9:53 AM, Darrell Blake wrote:
> I've installed the SDL framework for my Mac and the project
> templates for Xcode but when I create a project I can't seem to
> #include <GL/gl.h>. It says that the file doesn't exist. The OpenGL
> framework is there so I don't know why it's complaining.
> Interestingly, if I get rid of #include <GL/gl.h> and replace it
> with #include "SDL_opengl.h" it works fine.
>
> It's no big deal that I can't include gl.h because I can just use
> SDL_opengl.h. I was just wondering if anyone knew why it is?
On OS X systems, the proper headers to include are:
<OpenGL/gl.h>
<OpenGL/glext.h>
Richard Schreyer
More information about the SDL
mailing list