gluErrorString function

Applies to: desktop apps only

The gluErrorString function produces an error string from an OpenGL or GLU error code. The error string is ANSI only.

Syntax

const CLubyte* WINAPI 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.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Glu.h

Library

Glu32.lib

DLL

Glu32.dll

See also

glGetError
gluNurbsCallback
gluQuadricCallback
gluTessCallback

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.