- OS: Mac OS X 10.8.3
-
make
then copy the lib folder to your project -
cpp header will
#ifdef __APPLE__ #include <GLUT/glut.h> #include <OpenGL/gl.h> #include <OpenGL/glu.h> #else #include <GL/gl.h> #include <GL/glu.h> #include "glut.h" #endif #include "glui.h"
-
Makefile in your project will look as follow
default: g++ -framework GLUT -framework OpenGL -framework Cocoa demo.cpp -o demo lib/libglui.a