Commit 7bfa099f authored by Jan Möbius's avatar Jan Möbius
Browse files

Added own glError to String function to avoid the glu version which is deprecated on mac



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@19046 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 0d494958
......@@ -84,6 +84,12 @@
namespace ACG {
//=============================================================================
/** \brief replaces the gluErrorToString function at least for the standard OpenGL Headers
*
*/
std::string ACGDLLEXPORT glErrorToString( GLenum _error );
/** Nice wrapper that outputs all current OpenGL errors to std::cerr.
If no error is present nothing is printed.
**/
......@@ -92,16 +98,11 @@ inline void glCheckErrors()
GLenum error;
while ((error = glGetError()) != GL_NO_ERROR)
{
std::cerr << "GL error: " << gluErrorString(error) << std::endl;
std::cerr << "GL error: " << glErrorToString(error) << std::endl;
}
}
inline void nurbsErrorCallback(GLenum errorCode)
{
const GLubyte *estring;
estring = gluErrorString(errorCode);
std::cerr << "Nurbs Error: " << estring << std::endl;;
}
void ACGDLLEXPORT nurbsErrorCallback(GLenum errorCode);
//=============================================================================
} // namespace ACG
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment