qt5base-lts/examples/opengl/legacy
Thiago Macieira 19b0ce5daa Change almost all other uses of qrand() to QRandomGenerator
The vast majority is actually switched to QRandomGenerator::bounded(),
which gives a mostly uniform distribution over the [0, bound)
range. There are very few floating point cases left, as many of those
that did use floating point did not need to, after all. (I did leave
some that were too ugly for me to understand)

This commit also found a couple of calls to rand() instead of qrand().

This commit does not include changes to SSL code that continues to use
qrand() (job for someone else):
  src/network/ssl/qsslkey_qt.cpp
  src/network/ssl/qsslsocket_mac.cpp
  tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp

Change-Id: Icd0e0d4b27cb4e5eb892fffd14b5285d43f4afbf
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2017-11-08 09:14:03 +00:00
..
framebufferobject2 Be (somewhat more) consistent about the value of pi 2017-06-20 09:53:46 +00:00
grabber Be (somewhat more) consistent about the value of pi 2017-06-20 09:53:46 +00:00
hellogl Remove last traces of opengl es 1 support 2016-11-16 22:00:46 +00:00
overpainting Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
pbuffers Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00
pbuffers2 Clean up some arithmetic code in an example 2017-07-14 13:36:46 +00:00
samplebuffers Be (somewhat more) consistent about the value of pi 2017-06-20 09:53:46 +00:00
shared Merge remote-tracking branch 'origin/5.6' into 5.7 2016-06-06 09:04:55 +02:00
legacy.pro Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00
README

This directory contains legacy examples that use the fixed pipeline
and thus are not compatible with OpenGL ES 2.0+ and the core profile of
OpenGL 3.0+. They also rely on the Qt OpenGL module (e.g. QGLWidget) which
is not advisable in new application.