Defines a callback for a non-uniform rational B-spline (NURBS) object.
OpenGL C bindings library: libGL.a
void gluNurbsCallback(GLUnurbsObj *nobj, GLenum Which, void (*Function)())
The gluNurbsCallback subroutine is used to define a callback to be used by a NURBS object. If the specified callback is already defined, the existing definition is replaced. If the fn parameter is null, the existing callback is erased.
There is only one legal callback, GLU_ERROR, associated with this subroutine. The error function is called when an error is encountered. Its single argument type is GLenum, which indicates the specific error that occurred. There are 37 errors unique to NURBS. They are named GLU_NURBS_ERROR1 through GLU_NURBS_ERROR37. Character strings describing these errors can be retrieved with the gluErrorString subroutine.
|Specifies the NURBS object created with the gluNewNurbsRenderer subroutine.
|Specifies the callback being defined. The only valid value is GLU_ERROR.
|Specifies the function that the callback calls.
|Contains C language constraints, variable type definitions, and ANSI function prototypes for OpenGL.
The gluErrorString subroutine, gluNewNurbsRenderer subroutine.