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
The function that the callback calls.

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.

QuickInfo

  Windows NT: Use version 3.5 and later.
  Windows: Use Windows 95 and later.
  Windows CE: Unsupported.
  Header: Declared in glu.h.
  Import Library: Link with glu32.lib.

See Also

gluErrorString, gluNewNurbsRenderer