qt5base-lts/examples/opengl
Michal Klocek 5786ac12f0 Fix hellowindow example
It seems this example never worked as expected.
It has a 'multiple' option which should show extra
windows with rendering taking place in different
thread, however although render is moved to other thread
render() function was never called in that thread.

Fix following things:
 * make rendering in other thread
 * stop requestUpdate if nothing is exposed
 * add timer so animation works at the same speed despite
   of number of windows (renderer B renders two windows)
 * wait for render to finish before triggering requestUdpate
 * remove mutex where not needed

Pick-to: 5.15
Change-Id: I420436bd28d0357534332dd55b088d634d906c14
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
2020-05-25 17:37:57 +02:00
..
2dpainting Move QOpenGLWidget from QtOpenGL to its own module 2020-02-18 09:22:51 +01:00
computegles31 Post Merge Fixes 2020-01-24 12:29:18 +00:00
contextinfo Move QOpenGLShaderProgram from QtGui to QtOpenGL 2020-02-20 16:11:02 +01:00
cube Move QOpenGLWidget from QtOpenGL to its own module 2020-02-18 09:22:51 +01:00
doc Merge remote-tracking branch 'origin/5.15' into dev 2020-04-08 20:11:39 +02:00
hellogl2 Move QOpenGLWidget from QtOpenGL to its own module 2020-02-18 09:22:51 +01:00
hellogles3 Post Merge Fixes 2020-01-24 12:29:18 +00:00
hellowindow Fix hellowindow example 2020-05-25 17:37:57 +02:00
openglwindow Post-merge fixes 2020-01-30 20:45:08 +00:00
paintedwindow Merge remote-tracking branch 'origin/5.15' into dev 2020-03-11 15:34:21 +01:00
qopenglwidget Move QOpenGLWidget from QtOpenGL to its own module 2020-02-18 09:22:51 +01:00
qopenglwindow Merge remote-tracking branch 'origin/5.15' into dev 2020-03-11 15:34:21 +01:00
textures Move QOpenGLWidget from QtOpenGL to its own module 2020-02-18 09:22:51 +01:00
threadedqopenglwidget Move QOpenGLWidget from QtOpenGL to its own module 2020-02-18 09:22:51 +01:00
CMakeLists.txt Post-merge fixes 2020-01-30 20:45:08 +00:00
opengl.pro Remove legacy OpenGL examples 2020-02-21 09:01:08 +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.