OpenGL.GLUT.special
GLUT functions requiring special handling to provide Pythonic wrappers
Note:
GLUT callbacks are controlled by a flag in the platform module. The
GLUT_GUARD_CALLBACKS flag controls whether to wrap passed functions
with error-checking and context-validity checking code so that the
callbacks will only trigger if there is a valid context. This is done
so that systems such as Win32 will not continue running GLUT callbacks
after the system has exited.
Note:
This is not a problem with FreeGLUT on Linux, so Linux does not
add the extra overhead of the wrapper function.
Note:
This hack does *not* prevent hanging if there is no GLUT callback
being triggered. I.e. if you create a GLUT program that doesn't
explicitly call exit and doesn't call display or the like in a timer
then your app will hang on exit on Win32.
XXX the platform-specific stuff should be getting done in the
platform module *not* in the module here!
Functions
glutButtonBoxFunc(
function
)
Specify handler for GLUT 'ButtonBox' events
def handler( (int) button, (int) state ):
return None
glutDialsFunc(
function
)
Specify handler for GLUT 'Dials' events
def handler( (int) dial, (int) value ):
return None
glutEntryFunc(
function
)
Specify handler for GLUT 'Entry' events
def handler( (int) state ):
return None
glutJoystickFunc(
function
)
Specify handler for GLUT 'Joystick' events
def handler( (int) buttonMask, (int) x, (int) y, (int) z ):
return None
glutKeyboardFunc(
function
)
Specify handler for GLUT 'Keyboard' events
def handler( (int) key, (int) x, (int) y ):
return None
glutKeyboardUpFunc(
function
)
Specify handler for GLUT 'KeyboardUp' events
def handler( (int) key, (int) x, (int) y ):
return None
glutMenuStateFunc(
function
)
Specify handler for GLUT 'MenuState' events
def handler( (int) status ):
return None
glutMenuStatusFunc(
function
)
Specify handler for GLUT 'MenuStatus' events
def handler( (int) status, (int) x, (int) y ):
return None
glutMotionFunc(
function
)
Specify handler for GLUT 'Motion' events
def handler( (int) x, (int) y ):
return None
glutMouseFunc(
function
)
Specify handler for GLUT 'Mouse' events
def handler( (int) button, (int) state, (int) x, (int) y ):
return None
glutOverlayDisplayFunc(
function
)
Specify handler for GLUT 'OverlayDisplay' events
def handler( ):
return None
glutPassiveMotionFunc(
function
)
Specify handler for GLUT 'PassiveMotion' events
def handler( (int) x, (int) y ):
return None
glutReshapeFunc(
function
)
Specify handler for GLUT 'Reshape' events
def handler( (int) width, (int) height ):
return None
glutSpaceballButtonFunc(
function
)
Specify handler for GLUT 'SpaceballButton' events
def handler( (int) button, (int) state ):
return None
glutSpaceballMotionFunc(
function
)
Specify handler for GLUT 'SpaceballMotion' events
def handler( (int) x, (int) y, (int) z ):
return None
glutSpaceballRotateFunc(
function
)
Specify handler for GLUT 'SpaceballRotate' events
def handler( (int) x, (int) y, (int) z ):
return None
glutSpecialFunc(
function
)
Specify handler for GLUT 'Special' events
def handler( (int) key, (int) x, (int) y ):
return None
glutSpecialUpFunc(
function
)
Specify handler for GLUT 'SpecialUp' events
def handler( (int) key, (int) x, (int) y ):
return None
glutTabletButtonFunc(
function
)
Specify handler for GLUT 'TabletButton' events
def handler( (int) button, (int) state, (int) x, (int) y ):
return None
glutTabletMotionFunc(
function
)
Specify handler for GLUT 'TabletMotion' events
def handler( (int) x, (int) y ):
return None
glutTimerFunc(
function
)
Specify handler for GLUT 'Timer' events
def handler( (int) value ):
return None
glutVisibilityFunc(
function
)
Specify handler for GLUT 'Visibility' events
def handler( (int) state ):
return None
glutWindowStatusFunc(
function
)
Specify handler for GLUT 'WindowStatus' events
def handler( (int) state ):
return None
Classes
class GLUTCallback(
object
):
class GLUTMenuCallback(
object
):
class GLUTTimerCallback(
GLUTCallback
):