ICamera: Adding getProjectionViewMatrix()
This commit is contained in:
parent
6db9d81f45
commit
8686151215
3 changed files with 24 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
@ -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 */
|
||||
Loading…
Add table
Add a link
Reference in a new issue