From 04c06ec6616d6af31491e121db896d34a82914d9 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 20 Jun 2019 07:42:16 -0400 Subject: VideoCommon/Statistics: Use std::array for projection values Makes the members within the interface much nicer to look at, and also makes copying them over much nicer too. --- Source/Core/VideoBackends/Software/TransformUnit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoBackends/Software/TransformUnit.cpp') diff --git a/Source/Core/VideoBackends/Software/TransformUnit.cpp b/Source/Core/VideoBackends/Software/TransformUnit.cpp index 4a55d1842f..9fae537527 100644 --- a/Source/Core/VideoBackends/Software/TransformUnit.cpp +++ b/Source/Core/VideoBackends/Software/TransformUnit.cpp @@ -58,7 +58,7 @@ static void MultiplyVec3Mat34(const Vec3& vec, const float* mat, Vec3& result) result.z = mat[8] * vec.x + mat[9] * vec.y + mat[10] * vec.z + mat[11]; } -static void MultipleVec3Perspective(const Vec3& vec, const float* proj, Vec4& result) +static void MultipleVec3Perspective(const Vec3& vec, const Projection::Raw& proj, Vec4& result) { result.x = proj[0] * vec.x + proj[1] * vec.z; result.y = proj[2] * vec.y + proj[3] * vec.z; @@ -67,7 +67,7 @@ static void MultipleVec3Perspective(const Vec3& vec, const float* proj, Vec4& re result.w = -vec.z; } -static void MultipleVec3Ortho(const Vec3& vec, const float* proj, Vec4& result) +static void MultipleVec3Ortho(const Vec3& vec, const Projection::Raw& proj, Vec4& result) { result.x = proj[0] * vec.x + proj[1]; result.y = proj[2] * vec.y + proj[3]; -- cgit v1.2.3