mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
implement struct example
This commit is contained in:
parent
c0bcb8bd00
commit
02b5e85f61
2 changed files with 7 additions and 3 deletions
|
|
@ -622,9 +622,6 @@ inline void mTransformPlane(const MatrixF& mat, const Point3F& scale, const Plan
|
||||||
|
|
||||||
//------------------------------------
|
//------------------------------------
|
||||||
// Templatized matrix class to replace MATRIXF above
|
// 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>
|
template<typename DATA_TYPE, U32 rows, U32 cols>
|
||||||
|
|
|
||||||
|
|
@ -108,6 +108,13 @@ IMPLEMENT_STRUCT( MatrixF,
|
||||||
MatrixFEngineExport::getMatrixField(),
|
MatrixFEngineExport::getMatrixField(),
|
||||||
|
|
||||||
END_IMPLEMENT_STRUCT;
|
END_IMPLEMENT_STRUCT;
|
||||||
|
IMPLEMENT_STRUCT(Matrix4F,
|
||||||
|
Matrix4F, MathTypes,
|
||||||
|
"")
|
||||||
|
|
||||||
|
MatrixTemplateExport::getMatrixField<F32, 4, 4>(),
|
||||||
|
|
||||||
|
END_IMPLEMENT_STRUCT;
|
||||||
IMPLEMENT_STRUCT( AngAxisF,
|
IMPLEMENT_STRUCT( AngAxisF,
|
||||||
AngAxisF, MathTypes,
|
AngAxisF, MathTypes,
|
||||||
"" )
|
"" )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue