OpenGL.GLUT.special
index
/tmp/buildd/pyopengl-3.0.0~b6/OpenGL/GLUT/special.py

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!

 
Modules
       
OpenGL.contextdata
ctypes
OpenGL.error
OpenGL.logs
os
OpenGL.platform
OpenGL.raw.GLUT
sys
traceback

 
Classes
       
object
GLUTCallback
GLUTTimerCallback
GLUTMenuCallback

 
class GLUTCallback(object)
    Class implementing GLUT Callback registration functions
 
  Methods defined here:
__call__(self, function, *args)
__init__(self, typeName, parameterTypes, parameterNames)
Initialise the glut callback instance

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class GLUTMenuCallback(object)
    Place to collect the GLUT Menu manipulation special code
 
  Class methods defined here:
glutCreateMenu(cls, func) from type
Create a new (current) menu, return small integer identifier
 
func( int ) -- Function taking a single integer reflecting
        the user's choice, the value passed to glutAddMenuEntry
 
return menuID (small integer)
glutDestroyMenu(cls, menu) from type
Destroy (cleanup) the given menu
 
Deregister's the interal pointer to the menu callback 
 
returns None

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
callbackType = <class 'ctypes.CFunctionType'>

 
class GLUTTimerCallback(GLUTCallback)
    GLUT timer callbacks (completely nonstandard wrt other GLUT callbacks)
 
 
Method resolution order:
GLUTTimerCallback
GLUTCallback
object

Methods defined here:
__call__(self, milliseconds, function, value)

Methods inherited from GLUTCallback:
__init__(self, typeName, parameterTypes, parameterNames)
Initialise the glut callback instance

Data descriptors inherited from GLUTCallback:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Functions
       
CurrentContextIsValid = glXGetCurrentContext(...)
_base_glutDestroyWindow = glutDestroyWindow(...)
_base_glutInit = glutInit(...)
glutCreateMenu(cls, func) method of type instance
Create a new (current) menu, return small integer identifier
 
func( int ) -- Function taking a single integer reflecting
        the user's choice, the value passed to glutAddMenuEntry
 
return menuID (small integer)
glutDestroyMenu(cls, menu) method of type instance
Destroy (cleanup) the given menu
 
Deregister's the interal pointer to the menu callback 
 
returns None
glutDestroyWindow(window)
Want to destroy the window, we need to do some cleanup...
glutInit(*args)
Initialise the GLUT library

 
Data
        GLUT = <CDLL 'libglut.so.3', handle 8933c80 at 8a62a0c>
GLUT_GUARD_CALLBACKS = False
INITIALIZED = False
PLATFORM = <OpenGL.platform.glx.GLXPlatform object at 0x8a56e6c>
__file__ = '/tmp/buildd/pyopengl-3.0.0~b6/OpenGL/GLUT/special.py'
__name__ = 'OpenGL.GLUT.special'
glutButtonBoxFunc = <OpenGL.GLUT.special.GLUTCallback object at 0x8aaf1cc>
glutDialsFunc = <OpenGL.GLUT.special.GLUTCallback object at 0x8aaf20c>
glutDisplayFunc = <OpenGL.GLUT.special.GLUTCallback object at 0x8aaf26c>
glutEntryFunc = <OpenGL.GLUT.special.GLUTCallback object at 0x8aaf28c>
glutIdleFunc = <OpenGL.GLUT.special.GLUTCallback object at 0x8aaf30c>
glutJoystickFunc = <OpenGL.GLUT.special.GLUTCallback object at 0x8aaf32c>
glutKeyboardFunc = <OpenGL.GLUT.special.GLUTCallback object at 0x8aaf36c>
glutKeyboardUpFunc = <OpenGL.GLUT.special.GLUTCallback object at 0x8aaf3ac>
glutMenuStateFunc = <OpenGL.GLUT.special.GLUTCallback object at 0x8aaf42c>
glutMenuStatusFunc = <OpenGL.GLUT.special.GLUTCallback object at 0x8aaf44c>
glutMotionFunc = <OpenGL.GLUT.special.GLUTCallback object at 0x8aaf48c>
glutMouseFunc = <OpenGL.GLUT.special.GLUTCallback object at 0x8aaf68c>
glutOverlayDisplayFunc = <OpenGL.GLUT.special.GLUTCallback object at 0x8aaf46c>
glutPassiveMotionFunc = <OpenGL.GLUT.special.GLUTCallback object at 0x8aaf6cc>
glutReshapeFunc = <OpenGL.GLUT.special.GLUTCallback object at 0x8aaf96c>
glutSpaceballButtonFunc = <OpenGL.GLUT.special.GLUTCallback object at 0x8aafb0c>
glutSpaceballMotionFunc = <OpenGL.GLUT.special.GLUTCallback object at 0x8aaf6ac>
glutSpaceballRotateFunc = <OpenGL.GLUT.special.GLUTCallback object at 0x8aaf7ec>
glutSpecialFunc = <OpenGL.GLUT.special.GLUTCallback object at 0x8aaf86c>
glutSpecialUpFunc = <OpenGL.GLUT.special.GLUTCallback object at 0x8aaf88c>
glutTabletButtonFunc = <OpenGL.GLUT.special.GLUTCallback object at 0x8aaf84c>
glutTabletMotionFunc = <OpenGL.GLUT.special.GLUTCallback object at 0x8aaf6ec>
glutTimerFunc = <OpenGL.GLUT.special.GLUTTimerCallback object at 0x8aaf8ac>
glutVisibilityFunc = <OpenGL.GLUT.special.GLUTCallback object at 0x8aaf8ec>
glutWindowStatusFunc = <OpenGL.GLUT.special.GLUTCallback object at 0x8aaf8cc>
log = <logging.Logger instance at 0x8d47ecc>