implement struct example

This commit is contained in:
marauder2k7 2024-07-28 07:04:23 +01:00
parent c0bcb8bd00
commit 02b5e85f61
2 changed files with 7 additions and 3 deletions

View file

@ -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<typename DATA_TYPE, U32 rows, U32 cols>

View file

@ -108,6 +108,13 @@ IMPLEMENT_STRUCT( MatrixF,
MatrixFEngineExport::getMatrixField(),
END_IMPLEMENT_STRUCT;
IMPLEMENT_STRUCT(Matrix4F,
Matrix4F, MathTypes,
"")
MatrixTemplateExport::getMatrixField<F32, 4, 4>(),
END_IMPLEMENT_STRUCT;
IMPLEMENT_STRUCT( AngAxisF,
AngAxisF, MathTypes,
"" )