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

gluQuadricCallback Subroutine

Purpose

Defines a callback for a quadrics object.

Library

OpenGL C bindings library: libGL.a

C Syntax

void gluQuadricCallback(GLUquadricObj *qobj, 
   GLenum Which, 
   void *Function)()

Description

The gluQuadricCallback subroutine defines a new callback for use by a quadrics object. If the specified callback is already defined, the existing definition for that callback is replaced. If the Function parameter is set to null, any existing callback is erased.

GLU_ERROR is the only legal callback for this subroutine. The function is called when an error is encountered. Its only argument is of type GLenum, which indicates the specific error. Character strings describing these errors can be retrieved with the gluErrorString call.

Parameters

qobj Specifies the quadrics object created with the gluNewQuadric subroutine.
Which Specifies the callback being defined. The only valid value for this parameter is GLU_ERROR.
Function Specifies the function being called.

Files

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

Related Information

The gluErrorString subroutine, gluNewQuadric subroutine.

OpenGL Overview.


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