Skip to content

Commit

Permalink
collinfo.cpp progress
Browse files Browse the repository at this point in the history
  • Loading branch information
HeartPiece44 committed Sep 28, 2023
1 parent 5011bc7 commit 876d47b
Show file tree
Hide file tree
Showing 4 changed files with 163 additions and 257 deletions.
23 changes: 1 addition & 22 deletions include/Matrixf.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,7 @@ struct Quat;
* Explicit constructors show up in recursion. Implicit does not.
*/
struct Matrixf {
inline Matrixf() { }
// // TODO: Determine if this could've actually existed, or if I'm just making
// // it up.
inline Matrixf(const Mtx mtx)
{
mMatrix.mtxView[0][0] = mtx[0][0];
mMatrix.mtxView[0][1] = mtx[0][1];
mMatrix.mtxView[0][2] = mtx[0][2];
mMatrix.mtxView[0][3] = mtx[0][3];
mMatrix.mtxView[1][0] = mtx[1][0];
mMatrix.mtxView[1][1] = mtx[1][1];
mMatrix.mtxView[1][2] = mtx[1][2];
mMatrix.mtxView[1][3] = mtx[1][3];
mMatrix.mtxView[2][0] = mtx[2][0];
mMatrix.mtxView[2][1] = mtx[2][1];
mMatrix.mtxView[2][2] = mtx[2][2];
mMatrix.mtxView[2][3] = mtx[2][3];
}
/**
* @reifiedAddress{80137300}
* @reifiedFile{plugProjectKandoU/collinfo.cpp}
*/

f32& operator()(int p1, int p2) { return mMatrix.mtxView[p1][p2]; }

Vector3f operator*(Vector3f& vec)
Expand Down
10 changes: 10 additions & 0 deletions include/Platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,14 @@ struct Platform : CNode {
Sys::OBBTree* mTriDivider; // _18
};

// this is stripped, but needed to generate weak dtors in collinfo.cpp
struct AgePlatform : public Platform {
AgePlatform();

virtual ~AgePlatform() { }

// _00 = VTBL
// _00-_18 = Platform
};

#endif
4 changes: 4 additions & 0 deletions include/sysMath.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
#include "JSystem/JMath.h"
#include "Dolphin/math.h"

template <typename T>
struct Vector3;

Vector3<f32> CRSplineTangent(f32 t, Vector3<f32>* controls);
f32 pikmin2_sinf(f32 x);
f32 pikmin2_cosf(f32 x);
f32 pikmin2_atan2f(f32 x, f32 y);
Expand Down
Loading

0 comments on commit 876d47b

Please sign in to comment.