qt5base-lts/tests/auto/widgets/graphicsview
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
..
qgraphicsanchorlayout auto tests: updated for new QStyle pure virtuals 2012-08-31 18:56:35 +02:00
qgraphicsanchorlayout1 Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qgraphicseffectsource Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qgraphicsgridlayout Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qgraphicsitem Remove some dead code wrapped in Q_WS_QWS. 2012-08-03 11:24:28 +02:00
qgraphicsitemanimation Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qgraphicslayout Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qgraphicslayoutitem Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qgraphicslinearlayout Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qgraphicsobject Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qgraphicspixmapitem Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qgraphicspolygonitem Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qgraphicsproxywidget Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qgraphicsscene Remove the obsolete scene argument for constructors of graphics items 2012-08-03 00:37:59 +02:00
qgraphicssceneindex Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qgraphicstransform Make gui/math3d classes use float rather than qreal 2012-09-07 13:27:38 +02:00
qgraphicsview Make QGraphicsView respect scrollbar policies 2012-08-31 16:29:43 +02:00
qgraphicswidget Revert "Implement automatic mouse grabbing on mouse button press." 2012-09-07 12:01:38 +02:00
graphicsview.pro Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00