diff options
author | Glenn Watson <glenn.watson@nokia.com> | 2012-02-08 09:36:18 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-08 14:37:04 +0100 |
commit | 5ba11cb77c9c30b0691cf5c15d132db9891b8773 (patch) | |
tree | 411b35faf4f2e9893e6a01a20025bea6100e9ac0 /src/quick/scenegraph/coreapi/qsgrenderer_p.h | |
parent | 8799d4f5501656dbf42f645a354c1f372b1139dc (diff) |
Provide determinant accessor in render state structure.
This allows custom renderers to set the determinant to a value
different than the actual model view transform matrix. This is
useful when parts of the scene node transformation are done on
the CPU rather than in the vertex shader.
Change-Id: Icf26a5922b0933275a61af4656cf842bf61e70d5
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src/quick/scenegraph/coreapi/qsgrenderer_p.h')
-rw-r--r-- | src/quick/scenegraph/coreapi/qsgrenderer_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/scenegraph/coreapi/qsgrenderer_p.h b/src/quick/scenegraph/coreapi/qsgrenderer_p.h index ff4196cd49..ec09ed4868 100644 --- a/src/quick/scenegraph/coreapi/qsgrenderer_p.h +++ b/src/quick/scenegraph/coreapi/qsgrenderer_p.h @@ -104,6 +104,7 @@ public: QMatrix4x4 currentModelViewMatrix() const { return m_current_model_view_matrix; } QMatrix4x4 currentCombinedMatrix() const { return m_current_projection_matrix * m_current_model_view_matrix; } qreal currentOpacity() const { return m_current_opacity; } + qreal determinant() const { return m_current_determinant; } void setProjectionMatrixToDeviceRect(); void setProjectionMatrixToRect(const QRectF &rect); @@ -153,6 +154,7 @@ protected: QMatrix4x4 m_current_projection_matrix; QMatrix4x4 m_current_model_view_matrix; qreal m_current_opacity; + qreal m_current_determinant; QSGContext *m_context; |