Re: [PyOpenGL-Devel] direct_state_access
Brought to you by:
mcfletch
From: Max M. <max...@gm...> - 2013-05-31 09:22:32
|
2013/5/30 Mike C. Fletcher <mcf...@vr...> > On 13-05-28 03:45 PM, Max Mustermann wrote: > > Hi there, > > I'm new to PyOpenGL. It seems as if there are some functions related > > to direct_state_access's vertex arrays missing, for example > > glVertexArrayVertexAttribOffsetEXT. Or did I miss something? > The entry points don't exist in the official/canonical glext.h file. > The glhpp library maintains a header with the declarations, so I've > added that header to the PyOpenGL generation process. That should > produce the entry points that glhpp has identified as missing (including > this one). Current bzr head has the modification and the generated > wrappers with the entry points, if you would like to test it. > > HTH, > Mike > Great, thank you. The functions are available now. Sadly I've no working use case yet, I could check them working. The code in the repository somehow contains the functions in http://bazaar.launchpad.net/~mcfletch/pyopengl/trunk/view/head:/OpenGL/raw/GL/NV/draw_texture.py (last change rev. 574) instead of http://bazaar.launchpad.net/~mcfletch/pyopengl/trunk/view/head:/OpenGL/raw/GL/EXT/direct_state_access.py (last change rev. 572). But my local rebuild placed them correctly in direct_state_access.py. There are still some more unavailable functions in the extension that were introduced as aliases due to some of OpenGL 3.0's new naming conventions ("Indexed" -> "i"): {'glEnableClientStateiEXT', 'glGetDoublei_vEXT', 'glGetPointeri_vEXT', 'glGetFloati_vEXT', 'glDisableClientStateiEXT'} (those definitely and at least those, as only checked for those in the specs after comparison to the file resulting from my butterfly-effect hack replacing glext.h with glew.h). Regards, thank you |