[SDL] Can't #include <GL/GL.h> on Mac

Darrell Blake darrell.blake at gmail.com
Sat Jun 10 12:00:30 PDT 2006


Ah, but that's not always possible. I use GLEW to import the extensions so
that I can use vertex and fragment shaders but you can't #include "glew.h"
if you #include "SDL_opengl.h". It's all swings and roundabouts.

On 6/10/06, Stephane Marchesin <stephane.marchesin at wanadoo.fr> wrote:
>
> Simon Roby wrote:
> > On 6/8/06, Richard Schreyer <rws_list at girr.org> wrote:
> >
> >> On OS X systems, the proper headers to include are:
> >>
> >> <OpenGL/gl.h>
> >> <OpenGL/glext.h>
> >>
> >
> > What the hell? Why did Apple do that?
> >
> So that you have a portability reason for including "SDL_opengl.h"
> instead :)
>
> Stephane
>
>
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060610/3d83a4b2/attachment.html 


More information about the SDL mailing list