From 26f120cc663ee1f5e6aef7ceffa41c64364a41bd Mon Sep 17 00:00:00 2001 From: Lynix Date: Wed, 21 Aug 2013 19:39:04 +0200 Subject: [PATCH] Fixed Matrix4::[Make]Ortho parameters name Former-commit-id: ad6a90025e6502ceff9add2c5ecd6c7b83483f38 --- include/Nazara/Math/Matrix4.hpp | 2 +- include/Nazara/Math/Matrix4.inl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/Nazara/Math/Matrix4.hpp b/include/Nazara/Math/Matrix4.hpp index c52830340..385c7df50 100644 --- a/include/Nazara/Math/Matrix4.hpp +++ b/include/Nazara/Math/Matrix4.hpp @@ -59,7 +59,7 @@ class NzMatrix4 NzMatrix4& MakeIdentity(); NzMatrix4& MakeLookAt(const NzVector3& eye, const NzVector3& target, const NzVector3& up = NzVector3::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& rotation); NzMatrix4& MakeScale(const NzVector3& scale); diff --git a/include/Nazara/Math/Matrix4.inl b/include/Nazara/Math/Matrix4.inl index f6372f236..97a1b92ee 100644 --- a/include/Nazara/Math/Matrix4.inl +++ b/include/Nazara/Math/Matrix4.inl @@ -1038,10 +1038,10 @@ NzMatrix4 NzMatrix4::LookAt(const NzVector3& eye, const NzVector3& t } template -NzMatrix4 NzMatrix4::Ortho(T left, T top, T width, T height, T zNear, T zFar) +NzMatrix4 NzMatrix4::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; }