[PyQt] glGetFloatv crashes application

Jonatan Magnusson jonatan.magnusson at gmail.com
Tue Feb 7 18:55:58 GMT 2017


Hi,

>
> The problem is that glGetFloatv() doesn't know about GL_MODELVIEW_MATRIX (and that it returns 16 values). Is there a definitive list somewhere of the names that can be queried and the versions of OpenGL they apply to?
>

Yes, I can see that could be a problem.

Using a predefined list of lengths could be a solution. I think that's 
how PyOpenGL does it. There's a list of all constants for example here:

https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glGet.xml

However, there are a few hundreds of them!


Regards,
Jonatan Magnusson


More information about the PyQt mailing list