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

[Prev] [Next]

gluNurbsCallback: define a callback for a NURBS object.

C Specification | Parameters | Description | See Also

[Up] C Specification

void gluNurbsCallback(
    GLUnurbs*	nurb,
    GLenum	which,
    GLvoid	(*CallBackFunc)()

[Up] Parameters

Specifies the NURBS object (created with gluNewNurbsRenderer).
Specifies the callback being defined. The only valid value is GLU_ERROR.
Specifies the function that the callback calls.

[Up] Description

gluNurbsCallback is used to define a callback to be used by a NURBS 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 error function is called when an error is encountered. Its single argument is of type GLenum, and it indicates the specific error that occurred. There are 37 errors unique to NURBS named GLU_NURBS_ERROR1 through GLU_NURBS_ERROR37. Character strings describing these errors can be retrieved with gluErrorString.

[Up] See Also


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