I can't get OpenGL to work.

On Mac OS X, you access the OpenGL headers like so:

#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#include <OpenGL/glext.h>

The header file "SDL_opengl.h" accounts for the first two headers shown here on all supported SDL systems.

If you are are using Project Builder, add OpenGL.framework to your project. On the command line, add:

-framework OpenGL

to the GCC or LD arguments in your Makefile

FAQ_MacOS_X_OpenGL (last edited 2008-04-17 08:18:22 by localhost)