qt5base-lts/examples
Sean Harmer 51d40d7e9b Make gui/math3d classes use float rather than qreal
This corrects the mismatch between using floats for internal storage
and qreal in the API of QVector*D which leads to lots of implicit
casts between double and float.

This change also stops users from being surprised by the loss of
precision when using these classes on desktop platforms and removes
the need for the private constructors taking a dummy int as the final
argument.

The QMatrix4x4 and QQuaternion classes have been changed to use float
for their internal storage since these are meant to be used in
conjunction with the QVector*D classes. This is to prevent unexpected
loss of precision and to improve performance.

The on-disk format has also been changed from double to float thereby
reducing the storage required when streaming vectors and matrices. This
is potentially a large saving when working with complex 3D meshes etc.

This also has a significant performance improvement when passing
matrices to QOpenGLShaderProgram (and QGLShaderProgram) as we no
longer have to iterate and convert the data to floats. This is
an operation that could easily be needed many times per frame.

This change also opens the door for further optimisations of these
classes to be implemented by using SIMD intrinsics.

This needs to be applied in conjunction with

https://codereview.qt-project.org/#change,33548

Task-number: QTBUG-21035
Task-number: QTBUG-20661
Change-Id: I9321b06040ffb93ae1cbd72fd2013267ac901b2e
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
2012-09-07 13:27:38 +02:00
..
dbus let qmake auto-generate d-bus adaptors and interfaces 2012-08-07 23:27:17 +02:00
embedded Fix digiflip example build. 2012-05-31 02:06:42 +02:00
gestures Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
gui Moved gui example documentation to the proper location. 2012-09-01 11:21:46 +02:00
ipc Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
ja_JP/linguist/hellotr Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
linguist Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
network Command-line-only examples should not build as .app bundles on OSX 2012-09-03 11:05:49 +02:00
opengl Make gui/math3d classes use float rather than qreal 2012-09-07 13:27:38 +02:00
qmake Command-line-only examples should not build as .app bundles on OSX 2012-09-03 11:05:49 +02:00
qpa Add install path for qpa windows example 2012-06-14 03:03:38 +02:00
qtconcurrent Command-line-only examples should not build as .app bundles on OSX 2012-09-03 11:05:49 +02:00
qtestlib Remove useless "QT += widgets" 2012-06-05 16:01:29 +02:00
sql Remove the obsolete scene argument for constructors of graphics items 2012-08-03 00:37:59 +02:00
threads Fix compilation of examples with -no-widgets 2012-06-07 07:27:53 +02:00
tools Doc: Fix broken return codes for a few examples 2012-08-15 11:38:37 +02:00
touch Replace the QGraphicsItem deprecated transforming functions 2012-06-26 04:18:14 +02:00
tutorials Call clear() instead of empty() in addressbook/part6 tutorial. 2012-08-09 03:26:19 +02:00
webkit/webkit-guide Change bugreports.qt.nokia.com -> bugreports.qt-project.org 2012-03-02 23:16:25 +01:00
widgets Make gui/math3d classes use float rather than qreal 2012-09-07 13:27:38 +02:00
xml Command-line-only examples should not build as .app bundles on OSX 2012-09-03 11:05:49 +02:00
examples.pro Added OpenGL example and documentation. 2012-08-29 16:53:00 +02:00
README Remove more references to demos. 2011-07-08 15:36:26 +02:00

Qt is supplied with a number of example applications that have been
written to provide developers with examples of the Qt API in use,
highlight good programming practice, and showcase features found in each of
Qt's core technologies.


Documentation for examples can be found in the Examples section
of the Qt documentation.