[Qt-interest] Qt and OpenGL 3.x

Oliver.Knoll at comit.ch Oliver.Knoll at comit.ch
Thu Dec 3 10:29:55 CET 2009


Hi,

any thoughts on when/if already Qt supports OpenGL 3.0 in that it would offer to specifically create a OpenGL 3.x context?

In the current 4.6 docs I see that Qt somehow "detects" whether OpenGL 3.x is present ("QGLFormat::OpenGL_Version_3_0"), but I still don't see any way how to explicitly ask for a GL 3.x context, when looking e.g. at http://doc.trolltech.com/4.6/qglformat.html#QGLFormat-2 (http://doc.trolltech.com/4.6/qgl.html#FormatOption-enum)

>From http://www.opengl.org/wiki/Getting_started#OpenGL_3.0_and_Above:

"Part of this new API is a specification of exactly what version of OpenGL you want. So if you ask for a GL 3.1 context, you are telling the system that you expect that any entrypoints version 3.1 removed from earlier versions will not be available, and that any entrypoints 3.1 added to new versions will be available. The new API can fail if the implementation simply does not implement that version of OpenGL."

Someone seems to have implemented a custom GL3Widget: http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=262519 for X11. But apart from that I did not find much when googling for "Qt OpenGL 3.0".


Will there be any "official" Qt API way to generate an OpenGL 3.x context "soon"? Or is there already (in Qt 4.6) and I just did not see it?

Cheers, Oliver
-- 
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22



More information about the Qt-interest-old mailing list