[ Previous | Next | Contents | Glossary | Home | Search ]
OpenGL 1.1 for AIX: Reference Manual

gluErrorString Subroutine

Purpose

Produces an error string from an OpenGL or GLU error code.

Library

OpenGL C bindings library: libGL.a

C Syntax

const GLubyte* gluErrorString(GLenum ErrorCode)

Description

The gluErrorString subroutine produces an error string from an OpenGL or GLU error code. The format of the string is ISO_Latin_1. For example, the code line

gluErrorString(GL_OUT_OF_MEMORY)

returns the out of memory string.

The standard GLU error codes are GLU_INVALID_ENUM, GLU_INVALID_VALID, and GLU_OUT_OF_MEMORY. Certain other GLU functions can return specialized error codes through callbacks. See the glGetError subroutine for a list of OpenGL error codes.

Parameters

ErrorCode Specifies an OpenGL or GLU error code.

Error Codes

The standard GLU error codes are:

Files

/usr/include/GL/gl.h Contains C language constraints, variable type definitions, and ANSI function prototypes for OpenGL.

Related Information

The glGetError subroutine, gluNurbsCallback subroutine, gluQuadricCallback subroutine, gluTessCallback subroutine.

OpenGL Overview.


[ Previous | Next | Contents | Glossary | Home | Search ]