gluNurbsCallback

define a callback for a NURBS object

Signature

gluNurbsCallback( GLUnurbs* ( nurb ) , GLenum ( which ) , _GLUfuncptr ( CallBackFunc ) )-> void
gluNurbsCallback( nurb , which , CallBackFunc )
Dispatch to the nurb's addCallback operation

Parameters

VariablesDescription
nurb
Specifies the NURBS object (created with gluNewNurbsRenderer ).
which
Specifies the callback being defined. Valid values are GLU_NURBS_BEGIN , GLU_NURBS_VERTEX , GLU_NURBS_NORMAL , GLU_NURBS_COLOR , GLU_NURBS_TEXTURE_COORD , GLU_NURBS_END , GLU_NURBS_BEGIN_DATA , GLU_NURBS_VERTEX_DATA , GLU_NURBS_NORMAL_DATA , GLU_NURBS_COLOR_DATA , GLU_NURBS_TEXTURE_COORD_DATA , GLU_NURBS_END_DATA , and GLU_NURBS_ERROR .
CallBackFunc
Specifies the function that the callback calls.

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

gluNurbsCallback
OpenGLContext tests/redbook_surface_cb.py Lines: 129, 130, 131, 132, 133, 134