OpenGL.platform.glx
index
/build/buildd/pyopengl-3.0.0~b6/OpenGL/platform/glx.py

GLX (x-windows)-specific platform features

 
Modules
       
OpenGL.platform.baseplatform
ctypes
OpenGL.platform.ctypesloader

 
Classes
       
BasePlatform(object)
GLXPlatform

 
class GLXPlatform(BasePlatform)
    Posix (Linux, FreeBSD, etceteras) implementation for PyOpenGL
 
 
Method resolution order:
GLXPlatform
BasePlatform
object

Methods defined here:
getGLUTFontPointer(self, constant)
Platform specific function to retrieve a GLUT font pointer
 
GLUTAPI void *glutBitmap9By15;
#define GLUT_BITMAP_9_BY_15             (&glutBitmap9By15)
 
Key here is that we want the addressof the pointer in the DLL,
not the pointer in the DLL.  That is, our pointer is to the 
pointer defined in the DLL, we don't want the *value* stored in
that pointer.

Static methods defined here:
CurrentContextIsValid = glXGetCurrentContext(...)
DEFAULT_FUNCTION_TYPE = CFUNCTYPE(restype, *argtypes)
CFUNCTYPE(restype, *argtypes) -> function prototype.
 
restype: the result type
argtypes: a sequence specifying the argument types
 
The function prototype can be called in different ways to create a
callable object:
 
prototype(integer address) -> foreign function
prototype(callable) -> create and return a C callable function from callable
prototype(integer index, method name[, paramflags]) -> foreign function calling a COM method
prototype((ordinal number, dll object)[, paramflags]) -> foreign function exported by ordinal
prototype((function name, dll object)[, paramflags]) -> foreign function exported by name
GetCurrentContext = glXGetCurrentContext(...)
getExtensionProcedure = glXGetProcAddressARB(...)
safeGetError = glGetError(...)

Data and other attributes defined here:
GL = <CDLL 'libGL.so.1', handle 82dcde8 at 838a54c>
GLE = <CDLL 'libgle.so.3', handle 82e0f78 at 838a8cc>
GLU = <CDLL 'libGLU.so.1', handle 82dfa58 at 838a70c>
GLUT = <CDLL 'libglut.so.3', handle 82e0858 at 838a80c>
GLX = <CDLL 'libGL.so.1', handle 82dcde8 at 838a54c>
OpenGL = <CDLL 'libGL.so.1', handle 82dcde8 at 838a54c>
glXGetProcAddressARB = <_FuncPtr object at 0x8356f34>

Methods inherited from BasePlatform:
checkExtension(self, name)
Check whether the given extension is supported by current context
constructFunction(self, functionName, dll, resultType=<class 'ctypes.c_long'>, argTypes=(), doc=None, argNames=(), extension=None)
Core operation to create a new base ctypes function
 
raises AttributeError if can't find the procedure...
copyBaseFunction(self, 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(self, functionName, dll, resultType=<class 'ctypes.c_long'>, argTypes=(), doc=None, argNames=(), extension=None)
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 = createBaseFunction(self, functionName, dll, resultType=<class 'ctypes.c_long'>, argTypes=(), doc=None, argNames=(), extension=None)
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.
errorChecking(self, func)
Add error checking to the function if appropriate
functionTypeFor(self, dll)
Given a DLL, determine appropriate function type...
install(self, namespace)
Install this platform instance into the platform module
nullFunction(self, functionName, dll, resultType=<class 'ctypes.c_long'>, argTypes=(), doc=None, argNames=(), extension=None)
Construct a "null" function pointer
wrapLogging(self, func)
Wrap function with logging operations if appropriate

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

Data and other attributes inherited from BasePlatform:
EXPORTED_NAMES = ['GetCurrentContext', 'CurrentContextIsValid', 'safeGetError', 'createBaseFunction', 'createExtensionFunction', 'copyBaseFunction', 'GL', 'GLU', 'GLUT', 'GLE', 'OpenGL', 'getGLUTFontPointer', 'GLUT_GUARD_CALLBACKS']
EXTENSIONS_USE_BASE_FUNCTIONS = False
GLUT_GUARD_CALLBACKS = False

 
Data
        __file__ = '/build/buildd/pyopengl-3.0.0~b6/OpenGL/platform/glx.py'
__name__ = 'OpenGL.platform.glx'