Added viewer-relative directions

Former-commit-id: 9d80744bd227689426b76df7e3c273de13424041
This commit is contained in:
Lynix
2015-01-03 22:39:51 +01:00
parent 596f407a79
commit ed1cc7a092
11 changed files with 223 additions and 9 deletions

View File

@@ -80,6 +80,21 @@ const NzFrustumf& NzView::GetFrustum() const
return m_frustum;
}
NzVector3f NzView::GetGlobalForward() const
{
return NzVector3f::UnitZ();
}
NzVector3f NzView::GetGlobalRight() const
{
return NzVector3f::UnitX();
}
NzVector3f NzView::GetGlobalUp() const
{
return -NzVector3f::UnitY();
}
const NzMatrix4f& NzView::GetProjectionMatrix() const
{
if (!m_projectionMatrixUpdated)