mirror of
https://github.com/zeldaret/mm.git
synced 2026-07-07 21:10:53 -04:00
(Mostly) Decompile PreRender.c (#105)
* start prerender * match func_8016FDB8 * fix fake af match * actually add prerender * Delete ctx.c * test * lots of oot transfers * lots of new functions done * match even more functions * slowly thread functions * two prerender functions left * some docs * make names more consistent with oot * ready for pr? * Update PreRender.c
This commit is contained in:
+29
-29
@@ -3066,33 +3066,33 @@ void Play_Init(GlobalContext* ctxt);
|
||||
void func_8016F5A8(GlobalContext* ctxt, s8* pcParm2, Input* iParm3);
|
||||
// void func_8016FC78(void);
|
||||
// void func_8016FC98(void);
|
||||
// void func_8016FCF0(UNK_TYPE1 param_1, UNK_TYPE1 param_2, UNK_TYPE1 param_3, UNK_TYPE1 param_4, UNK_TYPE4 param_5, UNK_TYPE4 param_6);
|
||||
void func_8016FD2C(void* param_1);
|
||||
// void func_8016FD60(UNK_TYPE1 param_1, UNK_TYPE1 param_2, UNK_TYPE1 param_3, UNK_TYPE1 param_4, UNK_TYPE4 param_5);
|
||||
// void func_8016FD94(void);
|
||||
// void func_8016FDB8(UNK_TYPE1 param_1, UNK_TYPE1 param_2, UNK_TYPE1 param_3, UNK_TYPE1 param_4, UNK_TYPE4 param_5);
|
||||
// void func_8016FF70(void);
|
||||
// void func_8016FF90(UNK_TYPE1 param_1, UNK_TYPE1 param_2, UNK_TYPE1 param_3, UNK_TYPE1 param_4, UNK_TYPE4 param_5, UNK_TYPE4 param_6, UNK_TYPE4 param_7, UNK_TYPE4 param_8);
|
||||
// void func_80170200(void);
|
||||
// void func_8017023C(void);
|
||||
// void func_8017057C(void);
|
||||
// void func_801705B4(void);
|
||||
// void func_801705EC(void);
|
||||
// void func_80170730(void);
|
||||
// void func_80170774(void);
|
||||
// void func_80170798(void);
|
||||
// void func_80170AE0(void);
|
||||
// void func_80170B28(void);
|
||||
// void func_80170B4C(void);
|
||||
// void func_8017160C(void);
|
||||
// void func_801716C4(void);
|
||||
// void func_801717F8(void);
|
||||
void func_80171F4C(s32 param_1);
|
||||
// void func_80171FA8(void);
|
||||
// void func_80172078(void);
|
||||
// void func_801720C4(void);
|
||||
// void func_801720FC(void);
|
||||
// void func_80172758(UNK_TYPE1 param_1, UNK_TYPE1 param_2, UNK_TYPE1 param_3, UNK_TYPE1 param_4, UNK_TYPE2 param_5, UNK_TYPE1 param_6, UNK_TYPE1 param_7, UNK_TYPE2 param_8, UNK_TYPE2 param_9, UNK_TYPE4 param_10, UNK_TYPE4 param_11, UNK_TYPE4 param_12, UNK_TYPE4 param_13, UNK_TYPE4 param_14);
|
||||
void PreRender_SetValuesSave(PreRenderContext* this, u32 width, u32 height, void* fbuf, void* zbuf, void* cvg);
|
||||
void PreRender_Init(PreRenderContext* this);
|
||||
void PreRender_SetValues(PreRenderContext* this, u32 width, u32 height, void* fbuf, void* zbuf);
|
||||
void PreRender_Destroy(PreRenderContext* this);
|
||||
void func_8016FDB8(PreRenderContext* this, Gfx** gfxp, void* buf, void* bufSave, u32 arg4);
|
||||
void func_8016FF70(PreRenderContext* this, Gfx** gfxp, void* buf, void* bufSave);
|
||||
void func_8016FF90(PreRenderContext* this, Gfx** gfxp, void* buf, void* bufSave, s32 envR, s32 envG, s32 envB, s32 envA);
|
||||
void func_80170200(PreRenderContext* this, Gfx** gfxp, void* buf, void* bufSave);
|
||||
void func_8017023C(PreRenderContext* this, Gfx** gfxp, void* buf, void* bufSave);
|
||||
void func_8017057C(PreRenderContext* this, Gfx** gfxp);
|
||||
void func_801705B4(PreRenderContext* this, Gfx** gfxp);
|
||||
void func_801705EC(PreRenderContext* this, Gfx** gfxp);
|
||||
void func_80170730(PreRenderContext* this, Gfx** gfxp);
|
||||
void func_80170774(PreRenderContext* this, Gfx** gfxp);
|
||||
void func_80170798(PreRenderContext* this, Gfx** gfxp);
|
||||
void func_80170AE0(PreRenderContext* this, Gfx** gfxp, s32 alpha);
|
||||
void func_80170B28(PreRenderContext* this, Gfx** gfxp);
|
||||
void PreRender_AntiAliasAlgorithm(PreRenderContext* this, s32 x, s32 y);
|
||||
void PreRender_ApplyAntiAliasingFilter(PreRenderContext* this);
|
||||
u32 func_801716C4(u8* arg0, u8* arg1, u8* arg2);
|
||||
void func_801717F8(PreRenderContext* this);
|
||||
void PreRender_ApplyFilters(PreRenderContext* this);
|
||||
void PreRender_ApplyFiltersSlowlyInit(PreRenderContext* this);
|
||||
void PreRender_ApplyFiltersSlowlyDestroy(PreRenderContext* this);
|
||||
void func_801720C4(PreRenderContext* this);
|
||||
void func_801720FC(PreRenderParams* params, Gfx** gfxp);
|
||||
void func_80172758(Gfx** gfxp, void* timg, void* tlut, u16 width, u16 height, u8 fmt, u8 siz, u16 tt, u16 arg8, f32 x, f32 y, f32 xScale, f32 yScale, u32 flags);
|
||||
void THGA_Ct(TwoHeadGfxArena* thga, Gfx* start, u32 size);
|
||||
void THGA_Dt(TwoHeadGfxArena* thga);
|
||||
u32 THGA_IsCrash(TwoHeadGfxArena* thga);
|
||||
@@ -3172,10 +3172,10 @@ void Graph_ThreadEntry(void* arg);
|
||||
Gfx* Graph_GfxPlusOne(Gfx* gfx);
|
||||
Gfx* Graph_BranchDlist(Gfx* gfx, Gfx* dst);
|
||||
void* Graph_DlistAlloc(Gfx** gfx, u32 size);
|
||||
// void func_80174AA0(void);
|
||||
void func_80174AA0(ListAlloc* alloc);
|
||||
// void func_80174AB4(void);
|
||||
// void func_80174B20(void);
|
||||
// void func_80174BA0(void);
|
||||
void func_80174BA0(ListAlloc* alloc);
|
||||
void main(void* arg);
|
||||
// u32 Padmgr_GetControllerBitmask(void);
|
||||
// void func_80174F24(void);
|
||||
|
||||
+2
-2
@@ -4097,10 +4097,10 @@ extern Color_RGBA8 D_801F6D30;
|
||||
extern u8 D_801F6DFC;
|
||||
// extern UNK_TYPE1 D_801F6DFD;
|
||||
extern SlowlyTask D_801F6E00;
|
||||
// extern UNK_TYPE1 D_801F6FC0;
|
||||
extern s32 D_801F6FC0;
|
||||
extern StackEntry slowlyStackEntry;
|
||||
extern u8 slowlyStack[4096];
|
||||
// extern UNK_TYPE1 D_801F7FE8;
|
||||
extern UNK_TYPE1 D_801F7FE8;
|
||||
extern UNK_TYPE1 D_801F7FF0;
|
||||
extern struct_801F8010 D_801F8010;
|
||||
extern struct_801F8020 D_801F8020;
|
||||
|
||||
+49
-1
@@ -992,6 +992,52 @@ typedef struct {
|
||||
/* 0x00227 */ u8 envB;
|
||||
} SkyboxContext; // size = 0x228
|
||||
|
||||
typedef struct ListAlloc {
|
||||
/* 0x00 */ struct ListAlloc* prev;
|
||||
/* 0x04 */ struct ListAlloc* next;
|
||||
} ListAlloc; // size = 0x8
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ u16 width;
|
||||
/* 0x02 */ u16 height;
|
||||
/* 0x04 */ u16 widthSave;
|
||||
/* 0x06 */ u16 heightSave;
|
||||
/* 0x08 */ char unk_8[8];
|
||||
/* 0x10 */ u16* fbuf;
|
||||
/* 0x14 */ u16* fbufSave;
|
||||
/* 0x18 */ u8* cvgSave;
|
||||
/* 0x1C */ u16* zbuf;
|
||||
/* 0x20 */ u16* zbufSave;
|
||||
/* 0x24 */ u16 ulxSave;
|
||||
/* 0x26 */ u16 ulySave;
|
||||
/* 0x28 */ u16 lrxSave;
|
||||
/* 0x2A */ u16 lrySave;
|
||||
/* 0x2C */ u16 ulx;
|
||||
/* 0x2E */ u16 uly;
|
||||
/* 0x30 */ u16 lrx;
|
||||
/* 0x32 */ u16 lry;
|
||||
/* 0x34 */ char unk_34[16];
|
||||
/* 0x44 */ ListAlloc alloc;
|
||||
/* 0x4C */ u8 unk_4C;
|
||||
/* 0x4D */ u8 unk_4D;
|
||||
/* 0x4E */ char unk_4E[2];
|
||||
} PreRenderContext; // size = 0x50
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ void* timg;
|
||||
/* 0x04 */ void* tlut;
|
||||
/* 0x08 */ u16 width;
|
||||
/* 0x0A */ u16 height;
|
||||
/* 0x0C */ u8 fmt;
|
||||
/* 0x0D */ u8 siz;
|
||||
/* 0x0E */ u16 tt;
|
||||
/* 0x10 */ u16 unk_10;
|
||||
/* 0x14 */ f32 x;
|
||||
/* 0x18 */ f32 y;
|
||||
/* 0x1C */ f32 xScale;
|
||||
/* 0x20 */ f32 yScale;
|
||||
/* 0x24 */ u32 flags;
|
||||
} PreRenderParams; // size = 0x28
|
||||
|
||||
typedef struct {
|
||||
/* 0x00000 */ View view;
|
||||
@@ -1650,7 +1696,9 @@ struct GlobalContext {
|
||||
/* 0x18B48 */ u8 curSpawn;
|
||||
/* 0x18B49 */ UNK_TYPE1 pad18B49[0x1];
|
||||
/* 0x18B4A */ u8 unk18B4A;
|
||||
/* 0x18B4B */ UNK_TYPE1 pad18B4B[0x309];
|
||||
/* 0x18B4B */ char pad18B4B[1];
|
||||
/* 0x18B4C */ PreRenderContext preRenderCtx;
|
||||
/* 0x18B9C */ char unk_18B9C[0x2B8];
|
||||
/* 0x18E54 */ SceneTableEntry* currentSceneTableEntry;
|
||||
/* 0x18E58 */ UNK_TYPE1 pad18E58[0x400];
|
||||
}; // size = 0x19258
|
||||
|
||||
Reference in New Issue
Block a user