You can still use it in 10.9. They send you a pretty strong signal that they want you to stop, though ...
You can disable these warnings with the -Wno-deprecated-declarations parameter of the compiler.
There are also some difficulties, including the correct headers, if you are trying to use GL3 level functions, because for this you need to enable gl3.h , while glut.h includes gl.h , which causes additional complaints about possible conflicts, the building. Some hacky workaround I found for this is to prevent glut.h from enabling gl.h by defining header protection:
#include <OpenGL/gl3.h> #define __gl_h_ #include <GLUT/glut.h>
Then, to use GL3 + level functions, you need to specify what with the additional flag on glutInitDisplayMode() :
glutInitDisplayMode(... | GLUT_3_2_CORE_PROFILE);
It looks like it's time to start using GLFW. I never used GLUT for anything serious, but it was always very convenient for small demos / tests.
source share