summaryrefslogtreecommitdiffstats
path: root/src/render/frontend/qcamera.h
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.h
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.h')
-rw-r--r--src/render/frontend/qcamera.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/render/frontend/qcamera.h b/src/render/frontend/qcamera.h
index dc4fa7dc6..2cb4bfadc 100644
--- a/src/render/frontend/qcamera.h
+++ b/src/render/frontend/qcamera.h
@@ -71,7 +71,7 @@ class QT3DRENDERSHARED_EXPORT QCamera : public Qt3DCore::QEntity
Q_PROPERTY(float right READ right WRITE setRight NOTIFY rightChanged)
Q_PROPERTY(float bottom READ bottom WRITE setBottom NOTIFY bottomChanged)
Q_PROPERTY(float top READ top WRITE setTop NOTIFY topChanged)
- Q_PROPERTY(QMatrix4x4 projectionMatrix READ projectionMatrix NOTIFY projectionMatrixChanged)
+ Q_PROPERTY(QMatrix4x4 projectionMatrix READ projectionMatrix WRITE setProjectionMatrix NOTIFY projectionMatrixChanged)
// LookAt
Q_PROPERTY(QVector3D position READ position WRITE setPosition NOTIFY positionChanged)
Q_PROPERTY(QVector3D upVector READ upVector WRITE setUpVector NOTIFY upVectorChanged)
@@ -142,6 +142,7 @@ public Q_SLOTS:
void setRight(float right);
void setBottom(float bottom);
void setTop(float top);
+ void setProjectionMatrix(const QMatrix4x4 &projectionMatrix);
void setPosition(const QVector3D &position);
void setUpVector(const QVector3D &upVector);
void setViewCenter(const QVector3D &viewCenter);