[PyOpenGL-Users] Minor tweak to array output handling (allow passing in arrays)
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2014-02-19 17:30:25
|
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 |