OpenGL-ctypes work this evening

"Mike C. Fletcher" <[email protected]>
Newsgroups gmane.comp.python.opengl.devel
Message-ID <[email protected]>
I've done quite a bit of work on OpenGL-ctypes, OpenGLContext and the 
vrml module this evening.  Most of the work in vrml and OpenGLContext is 
in eliminating needless array data-copying.  That was done by using a 
feature I just added to the numpy format handler.  Basically if you do 
the following:

    OpenGL.arrays.numpymodule.NumpyHandler.ERROR_ON_COPY = True

in your application you will receive CopyErrors raised whenever the 
system has to copy a numpy array due to format or contiguousness 
issues.  That should allow for optimising applications to prevent 
unneeded data-copying.

Other minor fixes here and there.

I'm still trying to track down the problems with the gluNurbsSurface 
call.  It has started failing and I just can't seem to see where.  Other 
nurbs calls (e.g. gluNurbsCurve) are working, so it's likely that I've 
messed up something in the custom wrapper for that particular function, 
but I haven't found *what* I'm doing wrong yet.

Also seeing failures in the simple particles demo in OpenGLContext.  
That's never failed before (ever), so I'm guessing I've subtly broken 
something in the array handling that's affecting both operations.

Have fun all,
Mike

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


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.