gluErrorString
[New
- Windows 95, OEM Service Release 2]
The gluErrorString function produces an error
string from an OpenGL or GLU error code. The error string is ANSI only.
const GLubyte* gluErrorString(
GLenum errCode |
|
); |
|
Parameters
errCode
An OpenGL or
GLU error code.
Remarks
The gluErrorString function produces an error
string from an OpenGL or GLU error code. The string is in an ISO Latin 1
format. For example, gluErrorString(GL_OUT_OF_MEMORY) returns the string
out of memory.
The standard GLU error codes are GLU_INVALID_ENUM,
GLU_INVALID_VALUE, and GLU_OUT_OF_MEMORY. Certain other GLU functions can
return specialized error codes through callbacks. For the list of OpenGL error
codes, see glGetError
The gluErrorString
function produces error strings in ANSI only. Whenever possible, use gluErrorStringWIN,
which allows ANSI or Unicode error strings. This makes it easier to localize
your program for use with another language.
See Also
glGetError, gluNurbsCallback