Re: Format of New glReadPixels

Ian Mallett <[email protected]> Sun, 7 Jul 2013 15:56:59 -0700
Newsgroups gmane.comp.python.opengl.user
Message-ID <CAG4NV=vg4QHqxym1X84BgC+xfb_0DDMhUVVt=VPbBUFWU5RhJA@mail.gmail.com>
On Fri, Jul 5, 2013 at 2:03 PM, Mike C. Fletcher <[email protected]>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

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
_______________________________________________
PyOpenGL-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyopengl-users