57. gui.qtgl — Qt OpenGL format

57.1. Functions defined in module gui.qtgl

gui.qtgl.setOpenGLFormat()[source]

Set the correct OpenGL format.

On a correctly installed system, the default should do well. The default OpenGL format can be changed by command line options:

--dri   : use the Direct Rendering Infrastructure, if available
--nodri : do not use the DRI
--opengl : set the opengl version
--(no)multisample
gui.qtgl.OpenGLFormat(fmt=None)[source]

Report information about the OpenGL format.

gui.qtgl.OpenGLSupportedVersions(flags)[source]

Return the supported OpenGL version.

flags is the return value of QGLFormat.OpenGLVersionFlag()

Returns a list with tuple (k,v) where k is a string describing an Opengl version and v is True or False.

gui.qtgl.OpenGLVersions(fmt=None)[source]

Report information about the supported OpenGL versions.

gui.qtgl.hasDRI()[source]

Check whether the OpenGL canvas has DRI enabled.