Fixed Matrix4::[Make]Ortho parameters name

Former-commit-id: ad6a90025e6502ceff9add2c5ecd6c7b83483f38
This commit is contained in:
Lynix 2013-08-21 19:39:04 +02:00
parent a6f26ff336
commit 26f120cc66
2 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ class NzMatrix4
NzMatrix4& MakeIdentity();
NzMatrix4& MakeLookAt(const NzVector3<T>& eye, const NzVector3<T>& target, const NzVector3<T>& up = NzVector3<T>::Up());
NzMatrix4& MakeOrtho(T left, T top, T width, T height, T zNear = -1.0, T zFar = 1.0);
NzMatrix4& MakeOrtho(T left, T right, T top, T bottom, T zNear = -1.0, T zFar = 1.0);
NzMatrix4& MakePerspective(T angle, T ratio, T zNear, T zFar);
NzMatrix4& MakeRotation(const NzQuaternion<T>& rotation);
NzMatrix4& MakeScale(const NzVector3<T>& scale);

View File

@ -1038,10 +1038,10 @@ NzMatrix4<T> NzMatrix4<T>::LookAt(const NzVector3<T>& eye, const NzVector3<T>& t
}
template<typename T>
NzMatrix4<T> NzMatrix4<T>::Ortho(T left, T top, T width, T height, T zNear, T zFar)
NzMatrix4<T> NzMatrix4<T>::Ortho(T left, T right, T top, T bottom, T zNear, T zFar)
{
NzMatrix4 matrix;
matrix.MakeOrtho(left, top, width, height, zNear, zFar);
matrix.MakeOrtho(left, right, top, bottom, zNear, zFar);
return matrix;
}