diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2015-11-07 19:02:14 +0000 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2015-11-17 19:41:18 +0000 |
commit | 26a118cfbce29014864f6cdddae66cccb65ffb4f (patch) | |
tree | daea9f2fc41c1df586c35cd56daa61f920ce5b58 /tests/auto/render/raycasting/tst_raycasting.cpp | |
parent | ace675a084ab944a245500b9f54be653126c3147 (diff) |
Remove transforms property of QTransform
Compound transformations are now built up using QMatrix4x4 in both QML
and C++. Updating examples accordingly.
Change-Id: I03c9abf1f6cdd1b56226dc0e16a7ad5ce84516dd
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'tests/auto/render/raycasting/tst_raycasting.cpp')
-rw-r--r-- | tests/auto/render/raycasting/tst_raycasting.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/render/raycasting/tst_raycasting.cpp b/tests/auto/render/raycasting/tst_raycasting.cpp index 0c7110edc..57a22a8ee 100644 --- a/tests/auto/render/raycasting/tst_raycasting.cpp +++ b/tests/auto/render/raycasting/tst_raycasting.cpp @@ -322,7 +322,7 @@ void tst_RayCasting::mousePicking() // Window center on near plane Qt3DCore::QRay3D ray = Qt3DRender::Render::PickBoundingVolumeJob::intersectionRay(viewport.center().toPoint(), - camera.matrix(), + camera.viewMatrix(), camera.projectionMatrix(), viewport.toRect()); Qt3DRender::Render::Sphere s(QVector3D(0.0f, 0.5f, 0.0f), 1.0f); @@ -335,7 +335,7 @@ void tst_RayCasting::mousePicking() // WHEN ray = Qt3DRender::Render::PickBoundingVolumeJob::intersectionRay(viewport.topLeft().toPoint(), - camera.matrix(), + camera.viewMatrix(), camera.projectionMatrix(), viewport.toRect()); intersects = s.intersects(ray, Q_NULLPTR); @@ -345,7 +345,7 @@ void tst_RayCasting::mousePicking() // WHEN ray = Qt3DRender::Render::PickBoundingVolumeJob::intersectionRay(viewport.topRight().toPoint(), - camera.matrix(), + camera.viewMatrix(), camera.projectionMatrix(), viewport.toRect()); intersects = s.intersects(ray, Q_NULLPTR); @@ -355,7 +355,7 @@ void tst_RayCasting::mousePicking() // WHEN ray = Qt3DRender::Render::PickBoundingVolumeJob::intersectionRay(viewport.bottomLeft().toPoint(), - camera.matrix(), + camera.viewMatrix(), camera.projectionMatrix(), viewport.toRect()); intersects = s.intersects(ray, Q_NULLPTR); @@ -365,7 +365,7 @@ void tst_RayCasting::mousePicking() // WHEN ray = Qt3DRender::Render::PickBoundingVolumeJob::intersectionRay(viewport.bottomRight().toPoint(), - camera.matrix(), + camera.viewMatrix(), camera.projectionMatrix(), viewport.toRect()); intersects = s.intersects(ray, Q_NULLPTR); |