mirror of
https://github.com/zeldaret/oot.git
synced 2025-10-20 13:40:02 +00:00
More documentation for PreRender.c (#1340)
* More documentation for PreRender.c * Comment fix * Suggested changes * More on coverage reading functions * Further comment changes * Further suggestions
This commit is contained in:
parent
e25bb1485a
commit
0d52a4aebd
6 changed files with 440 additions and 215 deletions
|
@ -1512,22 +1512,16 @@ void PreRender_SetValuesSave(PreRender* this, u32 width, u32 height, void* fbuf,
|
|||
void PreRender_Init(PreRender* this);
|
||||
void PreRender_SetValues(PreRender* this, u32 width, u32 height, void* fbuf, void* zbuf);
|
||||
void PreRender_Destroy(PreRender* this);
|
||||
void func_800C0F28(PreRender* this, Gfx** gfxp, void* buf, void* bufSave);
|
||||
void func_800C1258(PreRender* this, Gfx** gfxp);
|
||||
void func_800C170C(PreRender* this, Gfx** gfxp, void* fbuf, void* fbufSave, u32 r, u32 g, u32 b, u32 a);
|
||||
void func_800C170C(PreRender* this, Gfx** gfxp, void* buf, void* bufSave, u32 r, u32 g, u32 b, u32 a);
|
||||
void func_800C1AE8(PreRender* this, Gfx** gfxp, void* fbuf, void* fbufSave);
|
||||
void func_800C1B24(PreRender* this, Gfx** gfxp, void* fbuf, void* cvgSave);
|
||||
void func_800C1E9C(PreRender* this, Gfx** gfxp);
|
||||
void func_800C1F20(PreRender* this, Gfx** gfxp);
|
||||
void func_800C1FA4(PreRender* this, Gfx** gfxp);
|
||||
void func_800C20B4(PreRender* this, Gfx** gfxp);
|
||||
void func_800C2118(PreRender* this, Gfx** gfxp);
|
||||
void PreRender_SaveZBuffer(PreRender* this, Gfx** gfxp);
|
||||
void PreRender_SaveFramebuffer(PreRender* this, Gfx** gfxp);
|
||||
void PreRender_DrawCoverage(PreRender* this, Gfx** gfxp);
|
||||
void PreRender_RestoreZBuffer(PreRender* this, Gfx** gfxp);
|
||||
void func_800C213C(PreRender* this, Gfx** gfxp);
|
||||
void func_800C24BC(PreRender* this, Gfx** gfxp);
|
||||
void func_800C24E0(PreRender* this, Gfx** gfxp);
|
||||
void func_800C2500(PreRender* this, s32 x, s32 y);
|
||||
void func_800C2FE4(PreRender* this);
|
||||
void PreRender_Calc(PreRender* this);
|
||||
void PreRender_RestoreFramebuffer(PreRender* this, Gfx** gfxp);
|
||||
void PreRender_CopyImageRegion(PreRender* this, Gfx** gfxp);
|
||||
void PreRender_ApplyFilters(PreRender* this);
|
||||
void THGA_Ct(TwoHeadGfxArena* thga, Gfx* start, u32 size);
|
||||
void THGA_Dt(TwoHeadGfxArena* thga);
|
||||
u32 THGA_IsCrash(TwoHeadGfxArena* thga);
|
||||
|
|
|
@ -27,9 +27,6 @@
|
|||
#define CLAMP(x, min, max) ((x) < (min) ? (min) : (x) > (max) ? (max) : (x))
|
||||
#define CLAMP_MAX(x, max) ((x) > (max) ? (max) : (x))
|
||||
#define CLAMP_MIN(x, min) ((x) < (min) ? (min) : (x))
|
||||
#define MEDIAN3(a1, a2, a3) \
|
||||
(((a2) >= (a1)) ? (((a3) >= (a2)) ? (a2) : (((a1) >= (a3)) ? (a1) : (a3))) \
|
||||
: (((a2) >= (a3)) ? (a2) : (((a3) >= (a1)) ? (a1) : (a3))))
|
||||
|
||||
#define RGBA8(r, g, b, a) ((((r) & 0xFF) << 24) | (((g) & 0xFF) << 16) | (((b) & 0xFF) << 8) | (((a) & 0xFF) << 0))
|
||||
|
||||
|
|
|
@ -74,6 +74,9 @@
|
|||
#define STACK_TOP(stack) \
|
||||
((u8*)(stack) + sizeof(stack))
|
||||
|
||||
// Texture memory size, 4 KiB
|
||||
#define TMEM_SIZE 0x1000
|
||||
|
||||
// NOTE: Once we start supporting other builds, this can be changed with an ifdef
|
||||
#define REGION_NATIVE REGION_EU
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue