[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
OpenGL 1.2 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 error)

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

error 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.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]