Re: [PyOpenGL-Users] Anyone feel like looking up glGet constant return sizes?
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2014-04-08 04:15:47
|
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 |