mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02:00
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.
This commit is contained in:
@ -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];
|
||||
|
Reference in New Issue
Block a user