Re: [PyOpenGL-Users] Format of New glReadPixels
Brought to you by:
mcfletch
From: Ian M. <ia...@ge...> - 2013-07-07 22:57:22
|
On Fri, Jul 5, 2013 at 2:03 PM, Mike C. Fletcher <mcf...@vr...>wrote: > > What is the return value format of glReadPixels? > Apparently ctypes arrays no longer have .raw attributes, so if you don't > have numpy the object wasn't being converted to a string. Weird thing is > I don't see any documentation on .raw on arrays, so it's possible it was > just working by fluke-of-implementation before. I've added code that > does the transformation of a ctypes array to the OpenGL/images.py module > in bzr. > This, I assume: http://bazaar.launchpad.net/~mcfletch/pyopengl/trunk/revision/576 Oddly, I theoretically do have NumPy, although my Python setup has probably munged itself over several reinstalls. Is there a workaround available for current implementations? HTH, > Mike > Thanks, Ian |