OpenGL.platform.glx
GLX (x-windows)-specific platform features
Classes
class GLXPlatform(
BasePlatform
):
Posix (Linux, FreeBSD, etceteras) implementation for PyOpenGL
GetCurrentContext
getExtensionProcedure
GL
GLE
GLES1
GLES2
GLES3
glGetError
GLU
GLUT
GLX
glXGetProcAddressARB
DEFAULT_FUNCTION_TYPE(
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
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.