gluQuadricCallback function

The gluQuadricCallback function defines a callback for a quadric object.

Syntax

void WINAPI gluQuadricCallback(
   GLUquadric *qobj,
   GLenum     which,
   void (CALLBACK *fn)()
);

Parameters

qobj

The quadric object (created with gluNewQuadric).

which

The callback being defined. The only valid value is GLU_ERROR.

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

fn

The function to be called.

Return value

This function does not return a value.

Remarks

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

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Glu.h
Library
Glu32.lib
DLL
Glu32.dll

See also

gluErrorString

gluNewQuadric