Kaynağa Gözat

implement struct example

marauder2k7 1 yıl önce
ebeveyn
işleme
02b5e85f61

+ 0 - 3
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<typename DATA_TYPE, U32 rows, U32 cols>

+ 7 - 0
Engine/source/math/mathTypes.cpp

@@ -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,
    "" )