PDA

View Full Version : Converting glGetError into a string?



Jan
10-04-2003, 09:31 AM
Hi

Is there a function, which takes the value of glGetError and creates a readable string out of it?

Thanks,
Jan.

Coluna
10-04-2003, 09:41 AM
const GLubyte* gluErrorString(GLenum errorCode);

GLenum errCode;
const GLubyte *errString;
if ((errCode = glGetError()) !=
GL_NO_ERROR)
{
errString = gluErrorString(errCode);
}


Is that what u r searching for?

Jan
10-04-2003, 09:55 AM
Yes, thanks!