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/qsgmaterial.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/qsgmaterial.h')
-rw-r--r-- | src/quick/scenegraph/coreapi/qsgmaterial.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/scenegraph/coreapi/qsgmaterial.h b/src/quick/scenegraph/coreapi/qsgmaterial.h index 65c8df219f..0673aca814 100644 --- a/src/quick/scenegraph/coreapi/qsgmaterial.h +++ b/src/quick/scenegraph/coreapi/qsgmaterial.h @@ -73,6 +73,7 @@ public: QMatrix4x4 modelViewMatrix() const; QRect viewportRect() const; QRect deviceRect() const; + float determinant() const; QOpenGLContext *context() const; |