Share via


gluNurbsCallback

The gluNurbsCallback function defines a callback for a NURBS object.

void gluNurbsCallback(
  GLUnurbsObj *nobj,  GLenum which,  void (* fn)());

Parameters

  • nobj
    The NURBS object (created with gluNewNurbsRenderer).
  • which
    The callback being defined. The only valid value is GLU_ERROR. The meaning of GLU_ERROR means that 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.
  • fn
    A pointer to the callback function.

Remarks

Use gluNurbsCallback to define a callback to be used by a NURBS object. If the specified callback is already defined, it is replaced. If fn is NULL, then any existing callback is erased.

Requirements

**  Windows NT/2000:** Requires Windows NT 3.5 or later.
**  Windows 95/98:** Requires Windows 95 or later. Available as a redistributable for Windows 95.
**  Header:** Declared in Glu.h.
**  Library:** Use Glu32.lib.

See Also

gluErrorString, gluNewNurbsRenderer