Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt C++ Library for Windows and OpenGL

I am trying to experiment with the Qt library on Windows. On their downloads page, I notice that the binaries built using VS2012 are available in two forms, with and without OpenGL. What exactly is the difference between the two? In the OpenGL version, do they have some special API implemented using OpenGL or does all of Qt rendering depend on OpenGL? Also, is there a version of Qt that uses DirectX?

like image 216
Raman Sharma Avatar asked Aug 07 '13 20:08

Raman Sharma


2 Answers

@Raman: The opengl variant is using the desktop opengl version just like with Qt4.

The non-opengl variant is using angle, and you need to have that installed alongside the DirectX SDK to get it working. Angle is an adapter between the directx and the opengles API. Only the latter is support directly by Qt, but unfortunately directx drivers tend to work better on Windows than the opengl(es) ones. There are no plans to support a directx backend inside Qt, so we leave with Google's Angle work in that regard.

As for providing some extra bit, there was a discussion about it recently on the mailing list, that this decision should not be build time, but more like run time. However, no one has stood up just yet to make that work. Hopefully, that will change soon. It is causing confusion for the end users just like, so do not feel alone. ;-)

Hope this explanation helps.

like image 200
lpapp Avatar answered Oct 03 '22 02:10

lpapp


DirectX is supported via the ANGLE based library.

like image 33
CapelliC Avatar answered Oct 03 '22 01:10

CapelliC