Tao.OpenGl SDK Documentation

Glu.gluQuadricCallback Method 

Defines a callback for a quadric object.

[Visual Basic]
Public Shared Sub gluQuadricCallback( _
   ByVal quad As GLUquadric, _
   ByVal which As Integer, _
   ByVal func As QuadricErrorCallback _
)
[C#]
public static void gluQuadricCallback(
   GLUquadric quad,
   int which,
   QuadricErrorCallback func
);

Parameters

quad
The quadric object (created with gluNewQuadric).
which
The callback being defined. The only valid value is GLU_ERROR.
func
The function to be called.

Remarks

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 func is null, then any existing callback is erased.

The one legal callback is GLU_ERROR:

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

See Also

Glu Class | Tao.OpenGl Namespace | Glu.QuadricErrorCallback | gluErrorString | gluNewQuadric