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

ctypes abstraction layer
 
We keep rewriting functions as the main entry points change,
so let's just localise the changes here...

 
Modules
       
ctypes
ctypes.util

 
Functions
       
buildFunction(functionType, name, dll)
Abstract away the ctypes function-creation operation
loadLibrary(dllType, name, mode=256)
Load a given library by name with the given mode
 
dllType -- the standard ctypes pointer to a dll type, such as
        ctypes.cdll or ctypes.windll or the underlying ctypes.CDLL or 
        ctypes.WinDLL classes.
name -- a short module name, e.g. 'GL' or 'GLU'
mode -- ctypes.RTLD_GLOBAL or ctypes.RTLD_LOCAL,
        controls whether the module resolves names via other
        modules already loaded into this process.  GL modules
        generally need to be loaded with GLOBAL flags
 
returns the ctypes C-module object

 
Data
        ctypes_version = [1, 0, 1]
x = '1'