OpenGL.platform | index /var/pylive/src/OpenGL-dev/OpenGL-ctypes/OpenGL/platform/__init__.py

`Abstraction for the platform-specific code in PyOpenGL
Eventually there will likely be enough code here to warrant
having separate modules for each platform. Then we may load
them using sys.platform to construct the module name in order
to allow for easy extensions for new platforms.
GLUT_GUARD_CALLBACKS -- if True, all GLUT callbacks are wrapped
with code to check for errors and exit if there is a failure
in the callback...`

Package Contents
`` |  | __init__ -- Abstraction for the platform-specific code in PyOpenGL ctypesloader -- ctypes abstraction layer darwin glx -- GLX (x-windows)-specific platform features win32

Classes
`` |  | object _NullFunctionPointer
class _NullFunctionPointer(object)
`` | `Function-pointer-like object for undefined functions`
| Methods defined here: __call__(self, *args, **named) __init__(self, name, dll, resultType, argTypes, argNames) __nonzero__(self) `Make this object appear to be NULL` Data descriptors defined here: __dict__ `dictionary for instance variables (if defined)` __weakref__ `list of weak references to the object (if defined)`

Functions
`` |  | CurrentContextIsValid = glXGetCurrentContext(...) GetCurrentContext = glXGetCurrentContext(...) copyBaseFunction(original) `Create a new base function based on an already-created function This is normally used to provide type-specific convenience versions of a definition created by the automated generator.` createBaseFunction(functionName, dll=<CDLL 'libGL.so.1', handle 611930 at 2b54fad04c10>, resultType=<class 'ctypes.c_int'>, argTypes=(), doc=None, argNames=()) `Create a base function for given name Normally you can just use the dll.name hook to get the object, but we want to be able to create different bindings for the same function, so we do the work manually here to produce a base function from a DLL.` createExtensionFunction(functionName, dll=<CDLL 'libGL.so.1', handle 611930 at 2b54fad04c10>, resultType=<class 'ctypes.c_int'>, argTypes=(), doc=None, argNames=()) `Create an extension function for the given name Uses the platform's getExtensionProcedure function to retrieve a c_void_p to the function, then wraps in a platform FunctionType instance with all the funky code we've come to love.` init_extension(name) `Check whether the given extension exists` nullFunction(functionName, dll=<CDLL 'libGL.so.1', handle 611930 at 2b54fad04c10>, resultType=<class 'ctypes.c_int'>, argTypes=(), doc=None, argNames=()) `Construct a "null" function pointer` safeGetError = glGetError(...)

Data
`` |  | EXTENSIONS_USE_BASE_FUNCTIONS = False EXT_DEFINES_PROTO = True GL = <CDLL 'libGL.so.1', handle 611930 at 2b54fad04c10> GLE = <CDLL 'libgle.so.3', handle 6163e0 at 2b54fad17c10> GLU = <CDLL 'libGLU.so.1', handle 614240 at 2b54fad04ad0> GLUT = <CDLL 'libglut.so.3', handle 615560 at 2b54fad04b10> GLUT_GUARD_CALLBACKS = False GLX = <CDLL 'libGL.so.1', handle 611930 at 2b54fad04c10> HAS_DYNAMIC_EXT = True OpenGL = <CDLL 'libGL.so.1', handle 611930 at 2b54fad04c10> __path__ = ['/var/pylive/src/OpenGL-dev/OpenGL-ctypes/OpenGL/platform']