1

I am referring to errors of the following form when compiling on OSX:

'gluErrorString' is deprecated: first deprecated in OS X 10.9

A cursory google+DDG indicates that a bunch of GLU and GLUT functions were deprecated as well, but Apple's reference has no information regarding the reasoning behind the change or the suggested successor(s). I'm not using GLUT and simply want to get a human-readable error description from GL.

Existing answers to this question and others suggest using a different framework, targeting earlier OSX versions, or suppressing the warnings, but I cannot find evidence of a proper solution.

So, what happened? And what's the recommended way to get an error string?

Community
  • 1
  • 1
Cheezmeister
  • 4,895
  • 3
  • 31
  • 37

1 Answers1

5

The GLU specification has not been updated since 1998. Large parts of its functionality depend on OpenGL features that have long been deprecated. If you look at the man pages on opengl.org, the latest GLU documentation is grouped with the OpenGL 2.1 man pages.

Based on this, it certainly makes sense to consider GLU deprecated for OpenGL versions past 2.1.

As for gluErrorString(), there are only 6 possible error codes returned by glGetError(). Generating a string for each of them only takes a few lines of code.

Reto Koradi
  • 53,228
  • 8
  • 93
  • 133