Archives Sept. 17, 2006
Ctypes arrays as storage format (Seems natural given the implementation...)
Written by
on
in
Snaking.
Today (and yesterday) I added support for making ctypes arrays first-class array-storage formats for OpenGL-ctypes. That is, you can do this:
import OpenGL
OpenGL.preferredArray( 'ctypesarrays' )
Before you import OpenGL functions in your application and array-producing calls will then use ctypes arrays for the produced arrays (i.e. glGet* will return ctypes arrays instead of Numpy ...!-->!-->