| |
- 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 = <_FuncPtr object at 0x7f8ebf843e20>
- DEFAULT_FUNCTION_TYPE = CFUNCTYPE(restype, *argtypes, **kw)
- CFUNCTYPE(restype, *argtypes,
use_errno=False, use_last_error=False) -> 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 = <_FuncPtr object at 0x7f8ebf843e20>
getExtensionProcedure = <_FuncPtr object at 0x7f8ebf843bb0>
safeGetError = <_FuncPtr object at 0x7f8ebf843ef0>
Data and other attributes defined here:
- GL = <CDLL 'libGL.so.1', handle 2187350 at 2124890>
- GLE = <CDLL 'libgle.so.3', handle 218d600 at 21568d0>
- GLU = <CDLL 'libGLU.so.1', handle 2189a60 at 2156790>
- GLUT = <CDLL 'libglut.so.3', handle 218b920 at 2156810>
- GLX = <CDLL 'libGL.so.1', handle 2187350 at 2124890>
- OpenGL = <CDLL 'libGL.so.1', handle 2187350 at 2124890>
- glXGetProcAddressARB = <_FuncPtr object at 0x7f8ebf843bb0>
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_int'>, argTypes=(), doc=None, argNames=(), extension=None, deprecated=False)
- 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_int'>, argTypes=(), doc=None, argNames=(), extension=None, deprecated=False)
- 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_int'>, argTypes=(), doc=None, argNames=(), extension=None, deprecated=False)
- 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, dll)
- Add error checking to the function if appropriate
- finalArgType(self, typ)
- Retrieve a final type for arg-type
- 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_int'>, argTypes=(), doc=None, argNames=(), extension=None, deprecated=False)
- Construct a "null" function pointer
- wrapContextCheck(self, func, dll)
- Wrap function with context-checking if appropriate
- 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
| |