Doing a bit more work with OpenGL-ctypes this evening. Mostly focusing on the array datatype handling. Basically what I want to allow is that any number of array-like datatypes can be registered with the system so that they can be passed to (and potentially returned from) functions expecting POINTER( basetype ) arguments.
Also tweaked the code-generator so that it only declares a pointer an array type if the base data-type is something we know how to handle as an array (i.e. a float, int, uint, short, etceteras, not a structure or a void).


The Numeric community is converging on an array interface. We would be delighted if OpenGL-ctypes would support it.
http://numeric.scipy.org/array_interface.html
You kow, I've seen that page before, but AFAICS it's not available on Numpy arrays (at least with version 23.
However, OpenGL-ctypes only really deals with arrays of floats, doubles, ints, uints, bytes etceteras. It doesn't have particularly funky compound structure requirements (for 99% of the interface, anyway).