libglui / glui

GLUI is a GLUT-based C++ user interface library which provides controls such as buttons, checkboxes, radio buttons, and spinners to OpenGL applications. It is window-system independent, using GLUT or FreeGLUT.
Other
194 stars 82 forks source link

Mac GL_SILENCE_DEPRECATION #116

Closed nigels-com closed 5 years ago

nigels-com commented 5 years ago

GLUI builds on Mac but results in many warnings.

Ideally we can silence these.

extern void APIENTRY glutPostRedisplay(void) OPENGL_DEPRECATED(10_0, 10_9);
                     ^
example/example6.cpp:281:3: warning: 'glutInit' is deprecated: first deprecated in macOS 10.9 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence
      these warnings) [-Wdeprecated-declarations]
  glutInit(&argc, argv);