summaryrefslogtreecommitdiffstats
path: root/src/render/frontend/qcamera.cpp
diff options
context:
space:
mode:
authorVolker Krause <volker.krause@kdab.com>2016-03-20 13:01:14 +0100
committerVolker Krause <volker.krause@kdab.com>2016-03-20 12:10:07 +0000
commitc710ac721b51082e85681e798dd3fac5985de78f (patch)
treeac6ca12c6db5791a96d8615fc42400adaf33b476 /src/render/frontend/qcamera.cpp
parent524a8e7f3b568c2ca2cc6ab03c3d0f94fd1976dc (diff)
Allow to specify a custom projection matrix.
Task-number: QTBUG-48573 Change-Id: I349b6efe9571158d4d4a8ec48f20e1e38599b932 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/frontend/qcamera.cpp')
-rw-r--r--src/render/frontend/qcamera.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/render/frontend/qcamera.cpp b/src/render/frontend/qcamera.cpp
index 80187fc4c..a4d6743cd 100644
--- a/src/render/frontend/qcamera.cpp
+++ b/src/render/frontend/qcamera.cpp
@@ -401,8 +401,13 @@ float QCamera::top() const
/*!
\qmlproperty matrix4x4 Qt3DCore::Camera::projectionMatrix
- \readonly
*/
+void QCamera::setProjectionMatrix(const QMatrix4x4 &projectionMatrix)
+{
+ Q_D(QCamera);
+ d->m_lens->setProjectionMatrix(projectionMatrix);
+}
+
QMatrix4x4 QCamera::projectionMatrix() const
{
Q_D(const QCamera);