From 02b5e85f61e7b2e87cfa8c5ce310966ef6e56beb Mon Sep 17 00:00:00 2001 From: marauder2k7 Date: Sun, 28 Jul 2024 07:04:23 +0100 Subject: [PATCH] implement struct example --- Engine/source/math/mMatrix.h | 3 --- Engine/source/math/mathTypes.cpp | 7 +++++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Engine/source/math/mMatrix.h b/Engine/source/math/mMatrix.h index bdd167aee..e2717e985 100644 --- a/Engine/source/math/mMatrix.h +++ b/Engine/source/math/mMatrix.h @@ -622,9 +622,6 @@ inline void mTransformPlane(const MatrixF& mat, const Point3F& scale, const Plan //------------------------------------ // Templatized matrix class to replace MATRIXF above -// row-major for now, since torque says it uses that -// but in future could cut down on transpose calls if -// we switch to column major. //------------------------------------ template diff --git a/Engine/source/math/mathTypes.cpp b/Engine/source/math/mathTypes.cpp index 5beb3f9b0..751f3e31b 100644 --- a/Engine/source/math/mathTypes.cpp +++ b/Engine/source/math/mathTypes.cpp @@ -108,6 +108,13 @@ IMPLEMENT_STRUCT( MatrixF, MatrixFEngineExport::getMatrixField(), END_IMPLEMENT_STRUCT; +IMPLEMENT_STRUCT(Matrix4F, + Matrix4F, MathTypes, + "") + + MatrixTemplateExport::getMatrixField(), + + END_IMPLEMENT_STRUCT; IMPLEMENT_STRUCT( AngAxisF, AngAxisF, MathTypes, "" )