[Front] [Reference] [Imp. Guide] [Index]

[Prev] [Next]

gluQuadricCallback: define a callback for a quadrics object.

C Specification | Parameters | Description | See Also

[Up] C Specification

void gluQuadricCallback(
    GLUquadric*	 quad,
    GLenum	 which,
    GLvoid       (*CallBackFunc)()

[Up] Parameters

Specifies the quadrics object (created with gluNewQuadric).
Specifies the callback being defined. The only valid value is GLU_ERROR.
Specifies the function to be called.

[Up] Description

gluQuadricCallback is used to define a new callback to be used by a quadrics object. If the specified callback is already defined, then it is replaced. If CallBackFunc is NULL, then any existing callback is erased.

The one legal callback is GLU_ERROR:

The function is called when an error is encountered. Its single argument is of type GLenum, and it indicates the specific error that occurred. Character strings describing these errors can be retrieved with the gluErrorString call.

[Up] See Also


[Prev] [Next]
Front Reference [Imp. Guide] Index