Sept. 26, 2005
2:20 a.m.
Chris Barker wrote:
This is a Darn Good example of why we need the new array protocol.
I came across another one the other day when working on pygui. I wanted to use glReadPixels to read data into a buffer belonging to an NSBitmapImageRep, but PyOpenGL's glReadPixels can only read data into an existing memory block if it's a Numeric array, and PyObjC doesn't know anything about Numeric... Greg