Minor tweak to array output handling (allow passing in arrays)

"Mike C. Fletcher" <[email protected]> Wed, 19 Feb 2014 12:30:18 -0500
Newsgroups gmane.comp.python.opengl.user
Message-ID <[email protected]>
Hi all,

I've just checked in a change that allows for passing in output arrays 
for each wrapper that uses setOutput(), upshot is that most functions 
that return arrays can now pass in an array object to be filled (as you 
would do in C), allowing you to explicitly specify what object should be 
used for the output.  There is a minor cost to that change (a length 
check and an "X in (a,b)" check, but it should allow for easier 
translations between C and Python opengl code.

That change will require re-compiling OpenGL_accelerate for bzr head 
(and will necessitate a new OpenGL_accelerate release for beta 2).

Enjoy,
Mike

-- 
________________________________________________
   Mike C. Fletcher
   Designer, VR Plumber, Coder
   http://www.vrplumber.com
   http://blog.vrplumber.com


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net