[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
OpenGL 1.2 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( GLUquadric*quad, 
   GLenum which, 
   void *CallBackFunc( ) )

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 CallBackFunc 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

quad 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.
CallBackFunc 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.


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