#ifndef M_DO_M_DO_MTX_H #define M_DO_M_DO_MTX_H #include "SSystem/SComponent/c_Xyz.h" #include "SSystem/SComponent/c_sXyz.h" #include "dolphin/mtx/mtx.h" #include "dolphin/mtx/quat.h" #include "dolphin/types.h" void mDoMtx_XYZrotS(Mtx, s16, s16, s16); void mDoMtx_XYZrotM(Mtx, s16, s16, s16); void mDoMtx_ZXYrotS(Mtx, s16, s16, s16); void mDoMtx_ZXYrotM(Mtx, s16, s16, s16); void mDoMtx_ZrotS(Mtx, s16); void mDoMtx_YrotS(Mtx, s16); void mDoMtx_XrotS(Mtx, s16); class mDoMtx_stack_c { public: /* 8000CCC8 */ bool push(); /* 8000CD14 */ bool pop(); /* 8000CD64 */ static void transS(cXyz const&); /* 8000CDD4 */ static void transM(cXyz const&); /* 8000CD9C */ static void transM(f32, f32, f32); /* 8000CE00 */ static void scaleS(cXyz const&); /* 8000CE70 */ static void scaleM(cXyz const&); /* 8000CE38 */ static void scaleM(f32, f32, f32); /* 8000CE9C */ static void XYZrotS(csXyz const&); /* 8000CED4 */ static void XYZrotM(csXyz const&); /* 8000CF0C */ static void ZXYrotS(csXyz const&); /* 8000CF44 */ static void ZXYrotM(csXyz const&); /* 8000CF7C */ static void quatM(Quaternion const*); /* 8000D070 */ ~mDoMtx_stack_c(); // inline Mtx* get() { return &now; } static void transS(f32 x, f32 y, f32 z) { PSMTXTrans(now, x, y, z); } static void scaleS(f32 x, f32 y, f32 z) { PSMTXScale(now, x, y, z); } static void XYZrotS(s16 x, s16 y, s16 z) { mDoMtx_XYZrotS(now, x, y, z); } static void XYZrotM(s16 x, s16 y, s16 z) { mDoMtx_XYZrotM(now, x, y, z); } static void ZXYrotS(s16 x, s16 y, s16 z) { mDoMtx_ZXYrotS(now, x, y, z); } static void ZXYrotM(s16 x, s16 y, s16 z) { mDoMtx_ZXYrotM(now, x, y, z); } static Mtx now; static Mtx buffer[16]; static Mtx* next; static Mtx* end; }; class mDoMtx_quatStack_c { public: ~mDoMtx_quatStack_c(); // inline /* 0x000 */ mDoMtx_quatStack_c* field_0x0; /* 0x004 */ mDoMtx_quatStack_c* field_0x4; /* 0x008 */ u8 field_0x8[0xC]; /* 0x014 */ mDoMtx_quatStack_c* field_0x14; /* 0x018 */ u8 field_0x18[0xFC]; /* 0x114 */ mDoMtx_quatStack_c* field_0x114; /* 0x118 */ mDoMtx_quatStack_c* field_0x118; }; // Size: 0x11C #endif /* M_DO_M_DO_MTX_H */