diff options
Diffstat (limited to 'source/gameengine/Ketsji/KX_Camera.h')
-rw-r--r-- | source/gameengine/Ketsji/KX_Camera.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_Camera.h b/source/gameengine/Ketsji/KX_Camera.h index 103c47fc3d6..52ae64efbfb 100644 --- a/source/gameengine/Ketsji/KX_Camera.h +++ b/source/gameengine/Ketsji/KX_Camera.h @@ -158,6 +158,12 @@ public: /** returns true if this camera has been set a projection matrix. */ bool hasValidProjectionMatrix() const; + /** Sets the validity of the projection matrix. Call this if you change camera + data (eg lens, near plane, far plane) and require the projection matrix to be + recalculated. + */ + void InvalidateProjectionMatrix(bool valid = false); + /** Gets the modelview matrix that is used by the rasterizer. * @warning If the Camera is a dynamic object then this method may return garbage. Use GetCameraToWorld() instead. */ |