Re: Anyone feel like looking up glGet constant return sizes?
"Mike C. Fletcher" <[email protected]> Tue, 08 Apr 2014 00:15:40 -0400
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <[email protected]> |
On 14-04-03 05:53 AM, Walter White wrote: > I hope this is what you are looking for...just asked the OpenGL IRC. > They told me they are listed in the xml files in this folder > > https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/api/ > > and can be parsed. > > Or in glcorearb.h > https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/api/GL/glcorearb.h > > Hope that helps, > > Walter It did help, as it reminded me that the enum-groups are present in the xml files, so I can be sure we get all of the constants groups/tracked. However the xml files don't specify the *sizes* of the result arrays. That is, there's a notation saying CALCSIZE() in the xml files, but nothing I can see that tells you what the CALCSIZE() operation should do given a particular parameter. I suppose we could have a fallback path where we did what PyOpenGL 1.x did, namely allocate a huge buffer, fill it with an obscure value, and count how many values are not set to the obscure value on completion. That feels pretty gross, though. Thanks, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com ------------------------------------------------------------------------------ Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees _______________________________________________ PyOpenGL Homepage http://pyopengl.sourceforge.net