d_a_lod_bg work

This commit is contained in:
Jasper St. Pierre
2024-08-03 10:40:14 -07:00
parent 2a20bc837d
commit c99b5bdbdb
5 changed files with 357 additions and 43 deletions
@@ -101,10 +101,10 @@ public:
mJointTree.makeHierarchy(joint, hierarchy, &mMaterialTable, mShapeTable.mShapeNodePointer);
initShapeNodes();
}
const void* getBinary() { return mBinary; }
// TODO
void getBasicMtxCalc() {}
void getBinary() {}
void getRootNode() {}
void setMatColorAnimator(J3DAnmColor*, J3DMatColorAnm*) {}
void setTexNoAnimator(J3DAnmTexPattern*, J3DTexNoAnm*) {}
@@ -112,7 +112,7 @@ public:
private:
friend class J3DModelLoader;
/* 0x04 */ const void* mpRawData;
/* 0x04 */ const void* mBinary;
/* 0x08 */ u32 mFlags;
/* 0x0C */ u16 mbHasBumpArray;
/* 0x0E */ u16 mbHasBillboard;
+25 -21
View File
@@ -10,36 +10,40 @@ class JKRExpHeap;
class daLodbg_c : public fopAc_ac_c {
public:
inline void createHeap();
inline BOOL draw();
daLodbg_c();
~daLodbg_c();
BOOL createHeap();
BOOL draw();
inline BOOL execute();
void setExecute(int (daLodbg_c::*)()) {}
inline s32 getRoomNo(); // fake, debug maps are old but some inline here appears to be there
void setExecute(BOOL (daLodbg_c::*func)()) { mExecuteFunc = func; }
void deleteModelData();
void loadModelData(const char*, J3DModelData*&, JKRSolidHeap*&, unsigned long&);
void createModelData();
void execCreateWait();
void execReadWait();
void execDeleteWait();
BOOL loadModelData(const char*, J3DModelData*&, JKRSolidHeap*&, unsigned long&);
BOOL createModelData();
BOOL execCreateWait();
BOOL execReadWait();
BOOL execDeleteWait();
static s32 sObjectCount;
static JKRExpHeap* sLocalHeap;
static const char LodAllPath[];
public:
/* 0x290 */ int (daLodbg_c::*mExecFunc)();
/* 0x29C */ J3DModel* mpModel;
/* 0x2A0 */ J3DModel* mpModel2[2];
/* 0x290 */ BOOL (daLodbg_c::*mExecuteFunc)();
/* 0x29C */ J3DModel* mModel;
/* 0x2A0 */ J3DModel* mModel2[2];
/* 0x2A8 */ u8 mAlpha;
/* 0x2A9 */ u8 mDrawModel2;
/* 0x2A9 */ bool mDrawModel2;
/* 0x2AA */ u8 m2AA[0x2AC - 0x2AA];
/* 0x2AC */ J3DModelData* mpModelData;
/* 0x2B0 */ J3DModelData* mpModelData2;
/* 0x2B4 */ mDoDvdThd_mountXArchive_c* mpMountCommand;
/* 0x2B8 */ JKRArchive* mpArchive;
/* 0x2BC */ u32 m2BC;
/* 0x2C0 */ u32 m2C0;
/* 0x2C4 */ JKRSolidHeap* mpHeap;
/* 0x2C8 */ JKRSolidHeap* mpHeap2;
/* 0x2AC */ J3DModelData* mModelData;
/* 0x2B0 */ J3DModelData* mModelData2;
/* 0x2B4 */ mDoDvdThd_mountXArchive_c* mMountCommand;
/* 0x2B8 */ JKRArchive* mArchive;
/* 0x2BC */ u32 mDataSize;
/* 0x2C0 */ u32 mDataSize2;
/* 0x2C4 */ JKRSolidHeap* mDataHeap;
/* 0x2C8 */ JKRSolidHeap* mDataHeap2;
};
#endif /* D_A_LOD_BG_H */
+1 -1
View File
@@ -26,7 +26,7 @@ namespace daObjLight {
BOOL _execute();
BOOL _draw();
static BOOL renew_light_angle();
static bool renew_light_angle();
static s16 get_light_angle();
static s16 get_light_dif_angle();
static BOOL set_light_dif_angle_LOD(s16);