qt6-bb10/tests/auto
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
..
cmake Don't attempt to test DBus on QNX. 2012-08-28 21:17:48 +02:00
compilerwarnings/data Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
concurrent Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
corelib Use true and false in preference to TRUE and FALSE 2012-09-05 03:03:05 +02:00
dbus Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
gui Make gui/math3d classes use float rather than qreal 2012-09-07 13:27:38 +02:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network test: Check for null string comparison 2012-09-05 03:03:02 +02:00
opengl Remove some dead code wrapped in Q_WS_QWS. 2012-08-03 11:24:28 +02:00
other Fix some warnings in tests. 2012-08-28 17:07:15 +02:00
printsupport Ensure that printer orientation is preserved 2012-08-30 08:54:59 +02:00
shared Expose QPA API under qpa/* 2012-05-07 20:25:24 +02:00
sql Use QStringList::join(QChar) overload where applicable [QtSql] 2012-09-03 19:35:25 +02:00
testlib Make QSignalSpy copy QVariant parameters directly 2012-08-07 11:15:55 +02:00
tools Auto test for 'qmake -project' use case. 2012-09-04 10:30:33 +02:00
widgets Make gui/math3d classes use float rather than qreal 2012-09-07 13:27:38 +02:00
xml Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
auto.pro tests: fixed check for QtOpenGL 2012-07-30 06:06:12 +02:00
network-settings.h Fix auto tests build with gcc 4.7 2012-05-23 00:42:20 +02:00
platformquirks.h Remove #ifdef Q_WS_ / include / #endif conditionals. 2012-07-16 16:30:55 +02:00
test.pl Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00