qt5base-lts/examples/opengl
Laszlo Agocs b46ffbca0c Fix up QOpenGLWidget transparency support
The glColorMask call was troublesome. In addition, the Qt::WA_TranslucentBackground
was misinterpreted and recommended misleadingly in the documentation. The hellogl2
example's --transparent argument was disfunctional in practice.

Replace glColorMask with glBlendFuncSeparate. The hellogl2 example and the docs are
now corrected wrt enabling semi-transparency in a QOpenGLWidget that is not a top-level
(which is the most common case).

Task-number: QTBUG-47276
Change-Id: I6f40e732d455f5efcf158649ac9a52ff9f240e85
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
2015-09-24 12:51:37 +00:00
..
2dpainting Port examples/opengl to new connection syntax. 2015-09-02 10:21:56 +00:00
contextinfo Port examples/opengl to new connection syntax. 2015-09-02 10:21:56 +00:00
cube Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
doc Update copyright headers 2015-02-11 06:49:51 +00:00
hellogl2 Fix up QOpenGLWidget transparency support 2015-09-24 12:51:37 +00:00
hellogles3 Port examples/opengl to new connection syntax. 2015-09-02 10:21:56 +00:00
hellowindow Port examples/opengl to new connection syntax. 2015-09-02 10:21:56 +00:00
legacy Make OpenGL legacy examples hellogl and overpainting work with Dynamic GL. 2015-05-23 08:59:14 +00:00
paintedwindow Port examples/opengl to new connection syntax. 2015-09-02 10:21:56 +00:00
qopenglwidget Port examples/opengl to new connection syntax. 2015-09-02 10:21:56 +00:00
qopenglwindow Port examples/opengl to new connection syntax. 2015-09-02 10:21:56 +00:00
textures Port examples/opengl to new connection syntax. 2015-09-02 10:21:56 +00:00
threadedqopenglwidget Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
opengl.pro Expose GLES 3.0 and 3.1 functions 2015-07-23 07:59:07 +00:00
README Remove references to demos from docs. 2011-07-05 19:57:54 +02:00

Qt provides support for integration with OpenGL implementations on all
platforms, giving developers the opportunity to display hardware accelerated
3D graphics alongside a more conventional user interface.

These examples demonstrate the basic techniques used to take advantage of
OpenGL in Qt applications.


Documentation for these examples can be found via the Examples
link in the main Qt documentation.