d_a_tbox OK (#536)

* Add model info and demoProc to d_a_Tbox

* Remove nonmatching comment from demoProc

* remove nonmatching comment from getFuncType

* Remove remaining nonmatching comments

* Match first 4 functios of daTbox_c

* Match a bunch of functions for daTbox_c

* Code review cleanup

* Match execute and add some missing weak functions

* Match a few more functions on daTbox_c

* Finish all but actionDemo and draw on daTbox_c

* Fix PTMFs and remove return type from CreateInit

* Match all of daTbox_c. Relocations are wrong for some reason

* Remove nonmatching comments

* d_a_tbox ok
This commit is contained in:
Dylan Ascencio
2023-11-01 00:14:13 -04:00
committed by GitHub
parent 537001db48
commit e5b40fab3e
9 changed files with 496 additions and 94 deletions
@@ -803,6 +803,14 @@ struct J3DIndTexMtx : public J3DIndTexMtxInfo {
void load(u32 param_1) {
J3DGDSetIndTexMtx(GXIndTexMtxID(param_1 + 1), mOffsetMtx, mScaleExp);
}
Mtx3P getOffsetMtx() {
return mOffsetMtx;
}
void setScaleExp(s8 i_scaleExp) {
mScaleExp = i_scaleExp;
}
}; // Size: 0x1C
struct J3DIndTexOrder : public J3DIndTexOrderInfo {
@@ -74,6 +74,8 @@ public:
void onInvalid() { mInvalid = 1; }
u32 getTexGenNum() const { return mTexGenBlock->getTexGenNum(); }
u8 getTevStageNum() const { return mTevBlock->getTevStageNum(); }
J3DIndTexMtx* getIndTexMtx(u32 i) { return mIndBlock->getIndTexMtx(i); }
u8 getIndTexStageNum() const { return mIndBlock->getIndTexStageNum(); }
void setTevColor(u32 i, const J3DGXColorS10* i_color) { mTevBlock->setTevColor(i, i_color); }
void setTevKColor(u32 i, const J3DGXColor* i_color) { mTevBlock->setTevKColor(i, i_color); }
+1 -1
View File
@@ -78,7 +78,7 @@ struct J3DIndTexMtxInfo {
mScaleExp = other.mScaleExp;
}
/* 0x00 */ Mtx23 mOffsetMtx;
/* 0x18 */ u8 mScaleExp;
/* 0x18 */ s8 mScaleExp;
}; // Size: 0x1C
struct J3DFogInfo {