Work on d_menu_fmap2D (#2167)

* Start d_menu_fmap2d

* checkpoint

* checkpoint
This commit is contained in:
jdflyer
2024-06-10 00:38:30 -07:00
committed by GitHub
parent 3a2e38dc5c
commit 569d183b2c
8 changed files with 2072 additions and 654 deletions
-103
View File
@@ -10,77 +10,18 @@
// Types:
//
struct dDrawPath_c {
struct group_class {};
struct line_class {};
struct poly_class {};
struct room_class {};
/* 8002ABF0 */ bool isDrawType(int);
/* 8002AD84 */ void getLineColor(int, int);
/* 8003CA40 */ void rendering(dDrawPath_c::poly_class const*);
/* 8003CC24 */ void rendering(dDrawPath_c::room_class const*);
/* 8003C94C */ void rendering(dDrawPath_c::line_class const*);
/* 8003CCC4 */ void drawPath();
};
struct dMenu_Fmap_region_data_c {
/* 8003DB70 */ void getPointStagePathInnerNo(f32, f32, int, int*, int*);
};
struct dMenu_Fmap_world_data_c {};
struct renderingFmap_c {
struct palette_e {};
/* 801CE15C */ void init(u8*, u16, u16, u16, u16);
/* 801CE188 */ void entry(dMenu_Fmap_world_data_c*, int, f32, f32, f32);
/* 801CE224 */ void isSwitchSpecialOff(int);
/* 801CE288 */ void isSwitch(dDrawPath_c::group_class const*);
/* 801CE3C0 */ void getPointStagePathInnerNo(dMenu_Fmap_region_data_c*, f32, f32, int, int*,
int*);
/* 801CE410 */ void preDrawPath();
/* 801CE4D4 */ bool isDrawPath();
/* 801CE4DC */ void isDrawRoom();
/* 801CE560 */ void postDrawPath();
/* 801CE5B8 */ void postRenderingMap();
/* 801CE5EC */ void roomSetteing();
/* 801CE6A8 */ void getFirstRoomPointer();
/* 801CE75C */ void getFirstRegion();
/* 801CE7A8 */ void getFirstStage();
/* 801CE80C */ void getFirstRoom();
/* 801CE84C */ void getNextRoom();
/* 801CE8B8 */ void getNextStage();
/* 801CE93C */ void getNextRegion();
/* 801CE9A4 */ void getNextRoomPointer();
/* 801CF4D0 */ ~renderingFmap_c();
/* 801CF55C */ bool isRenderingFloor(int);
/* 801CF564 */ void beforeDrawPath();
/* 801CF568 */ void afterDrawPath();
};
struct dSv_info_c {
/* 80035360 */ void isSwitch(int, int) const;
};
struct ResTIMG {};
struct dRenderingMap_c {
/* 8003CD38 */ void makeResTIMG(ResTIMG*, u16, u16, u8*, u8*, u16) const;
/* 8003CDAC */ void renderingMap();
};
struct dRenderingFDAmap_c {
/* 8003D188 */ void preRenderingMap();
/* 8003D320 */ void postRenderingMap();
/* 8003D3C0 */ void renderingDecoration(dDrawPath_c::line_class const*);
/* 8003D68C */ void getDecoLineColor(int, int);
/* 8003D6B8 */ void getDecorationLineWidth(int);
};
struct dMfm_HIO_prm_res_src_s {
static u8 m_other[1 + 3 /* padding */];
};
@@ -89,43 +30,6 @@ struct dMenu_Fmap_room_data_c {
/* 8003D818 */ void isArrival();
};
struct _GXColor {};
struct dMenu_FmapMap_c {
/* 801CEAAC */ void setFmapPaletteColor(renderingFmap_c::palette_e, _GXColor const&);
/* 801CEA38 */ void setFmapPaletteColor(renderingFmap_c::palette_e, u8, u8, u8, u8);
/* 801CEAE0 */ void isFlashRoomNoCheck(int) const;
/* 801CEB1C */ void setPointColor(f32);
/* 801CEC24 */ dMenu_FmapMap_c();
/* 801CED38 */ ~dMenu_FmapMap_c();
/* 801CEDE8 */ void _create(u16, u16, u16, u16, void*);
/* 801CEE3C */ void _delete();
/* 801CEE94 */ void draw();
/* 801CF0B4 */ void rendering(dDrawPath_c::line_class const*);
/* 801CF12C */ void getLineWidth(int);
/* 801CF1D4 */ void isDrawType(int);
/* 801CF1E0 */ void setFlashOn(int, int, u8*, int);
/* 801CF208 */ void getLineColor(int, int);
/* 801CF298 */ void getBackColor() const;
/* 801CF2A0 */ void getColor(int);
/* 801CF394 */ void setTexture(u16, u16, u16, u16);
/* 801CF450 */ void setRendering(dMenu_Fmap_world_data_c*, int, f32, f32, f32, f32);
};
struct dDlst_base_c {
/* 8002ABEC */ void draw();
};
struct dDlst_list_c {
/* 80056794 */ void set(dDlst_base_c**&, dDlst_base_c**&, dDlst_base_c*);
};
struct Vec {};
struct JMath {
static u8 sincosTable_[65536];
};
//
// Forward References:
//
@@ -205,20 +109,13 @@ extern "C" void* __nw__FUli();
extern "C" void* __nwa__FUli();
extern "C" void __dl__FPv();
extern "C" void __dla__FPv();
extern "C" void DCStoreRange();
extern "C" void GXSetVtxDesc();
extern "C" void GXClearVtxDesc();
extern "C" void GXSetVtxAttrFmt();
extern "C" void GXSetMisc();
extern "C" void GXGetTexBufferSize();
extern "C" void GXLoadPosMtxImm();
extern "C" void _savegpr_27();
extern "C" void _savegpr_28();
extern "C" void _savegpr_29();
extern "C" void _restgpr_27();
extern "C" void _restgpr_28();
extern "C" void _restgpr_29();
extern "C" void strcmp();
extern "C" extern void* __vt__12dDlst_base_c[3];
extern "C" extern void* __vt__28dDrawPathWithNormalPattern_c[16];
extern "C" extern void* __vt__15dRenderingMap_c[23];