1
0
Fork 0

ICamera: Adding getProjectionViewMatrix()

This commit is contained in:
Henrik Hautakoski 2016-06-27 15:48:32 +02:00
parent 6db9d81f45
commit 8686151215
3 changed files with 24 additions and 1 deletions

View file

@ -56,6 +56,8 @@ public :
const Matrix4f& getProjectionMatrix() const;
const Matrix4f& getProjectionViewMatrix() const;
const Transform& getTransform() const;
protected :
@ -73,6 +75,9 @@ protected :
// Projection matrix. transforms eye -> Clipping space.
mutable Matrix4f m_proj;
mutable bool m_projNeedsUpdate;
mutable Matrix4f m_projView;
mutable bool m_projViewNeedsUpdate;
};
#endif /* SPECTRE_SCENE_CAMERA2D_H */

View file

@ -13,6 +13,8 @@ public :
virtual const Matrix4f& getViewMatrix() const = 0;
virtual const Matrix4f& getProjectionMatrix() const = 0;
virtual const Matrix4f& getProjectionViewMatrix() const = 0;
};
#endif /* SPECTRE_SCENE_ICAMERA_H */