What is the basis of Qt5 drawing system in Windows? GDI or GDI++? Whether turn to D2D after Vista?
-
Hi,
There are two variants. One uses OpenGL, the other uses DirectX.
-
-
Yes :)
To be more precise, it uses ANGLE, which translates OpenGL functions into DirectX functions.
-
Oh, thanks. As far as I know, OpenGL is for 3D, but what I concerned is 2D.
I searched the whole source of Qt5, do not find any appearance of the function D2D1CreateFactory() which is the beginning of using D2D for 2D drawing.
are you sure qt-windows-opensource-5.1.1-msvc2010-x86-offline.exe is using D2D by ANGLE? -
[quote author="rbtcx" date="1381568935"]Oh, thanks. As far as I know, OpenGL is for 3D, but what I concerned is 2D.[/quote]2D rendering is a just subset of 3D rendering. So, 3D engines are often used to do 2D rendering. Both OpenGL and Direct3D are used for 2D graphics too.
See http://msdn.microsoft.com/en-us/library/windows/apps/hh452790.aspx
[quote author="rbtcx" date="1381568935"]I searched the whole source of Qt5, do not find any appearance of the function D2D1CreateFactory() which is the beginning of using D2D for 2D drawing.
are you sure qt-windows-opensource-5.1.1-msvc2010-x86-offline.exe is using D2D by ANGLE?[/quote]ANGLE uses Direct3D, not Direct2D. Search the code base for "D3D" instead.See http://blog.qt.digia.com/blog/2012/10/24/graphics-on-windows-from-a-different-angle/