ctypes abstraction layer
We keep rewriting functions as the main entry points change, so let's just localise the changes here...
Abstract away the ctypes function-creation operation
mode = 256
Load a given library by name with the given mode
the standard ctypes pointer to a dll type, such as ctypes.cdll or ctypes.windll or the underlying ctypes.CDLL or ctypes.WinDLL classes.
a short module name, e.g. 'GL' or 'GLU'
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