summaryrefslogtreecommitdiff
path: root/src/code/PreRender.c
diff options
context:
space:
mode:
authorZelllll <56516451+Zelllll@users.noreply.github.com>2021-07-04 08:58:19 -0700
committerGitHub <noreply@github.com>2021-07-04 11:58:19 -0400
commit89f684b02622811b15d021ecb36e3fd2dadb00b7 (patch)
tree3db0f953ef630a7113a9459118ec96f8e13f3e1e /src/code/PreRender.c
parentcd9a2ed64817321a03a44e85439b811a0304bb9b (diff)
Change PreRenderContext to just be PreRender (#862)
Diffstat (limited to 'src/code/PreRender.c')
-rw-r--r--src/code/PreRender.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/code/PreRender.c b/src/code/PreRender.c
index 38f3b28fe..ec502596f 100644
--- a/src/code/PreRender.c
+++ b/src/code/PreRender.c
@@ -1,7 +1,7 @@
#include "global.h"
#include "alloca.h"
-void PreRender_SetValuesSave(PreRenderContext* this, u32 width, u32 height, void* fbuf, void* zbuf, void* cvg) {
+void PreRender_SetValuesSave(PreRender* this, u32 width, u32 height, void* fbuf, void* zbuf, void* cvg) {
this->widthSave = width;
this->heightSave = height;
this->fbufSave = fbuf;
@@ -13,12 +13,12 @@ void PreRender_SetValuesSave(PreRenderContext* this, u32 width, u32 height, void
this->lrySave = height - 1;
}
-void PreRender_Init(PreRenderContext* this) {
- bzero(this, sizeof(PreRenderContext));
+void PreRender_Init(PreRender* this) {
+ bzero(this, sizeof(PreRender));
ListAlloc_Init(&this->alloc);
}
-void PreRender_SetValues(PreRenderContext* this, u32 width, u32 height, void* fbuf, void* zbuf) {
+void PreRender_SetValues(PreRender* this, u32 width, u32 height, void* fbuf, void* zbuf) {
this->width = width;
this->height = height;
this->fbuf = fbuf;
@@ -29,11 +29,11 @@ void PreRender_SetValues(PreRenderContext* this, u32 width, u32 height, void* fb
this->lry = height - 1;
}
-void PreRender_Destroy(PreRenderContext* this) {
+void PreRender_Destroy(PreRender* this) {
ListAlloc_FreeAll(&this->alloc);
}
-void func_800C0F28(PreRenderContext* this, Gfx** gfxp, void* buf, void* bufSave) {
+void func_800C0F28(PreRender* this, Gfx** gfxp, void* buf, void* bufSave) {
Gfx* gfx;
s32 x;
s32 x2;
@@ -81,7 +81,7 @@ void func_800C0F28(PreRenderContext* this, Gfx** gfxp, void* buf, void* bufSave)
*gfxp = gfx;
}
-void func_800C1258(PreRenderContext* this, Gfx** gfxp) {
+void func_800C1258(PreRender* this, Gfx** gfxp) {
Gfx* gfx;
s32 y;
s32 y2;
@@ -131,7 +131,7 @@ void func_800C1258(PreRenderContext* this, Gfx** gfxp) {
*gfxp = gfx;
}
-void func_800C170C(PreRenderContext* this, Gfx** gfxp, void* fbuf, void* fbufSave, u32 r, u32 g, u32 b, u32 a) {
+void func_800C170C(PreRender* this, Gfx** gfxp, void* fbuf, void* fbufSave, u32 r, u32 g, u32 b, u32 a) {
Gfx* gfx;
s32 x;
s32 x2;
@@ -183,11 +183,11 @@ void func_800C170C(PreRenderContext* this, Gfx** gfxp, void* fbuf, void* fbufSav
*gfxp = gfx;
}
-void func_800C1AE8(PreRenderContext* this, Gfx** gfxp, void* fbuf, void* fbufSave) {
+void func_800C1AE8(PreRender* this, Gfx** gfxp, void* fbuf, void* fbufSave) {
func_800C170C(this, gfxp, fbuf, fbufSave, 255, 255, 255, 255);
}
-void func_800C1B24(PreRenderContext* this, Gfx** gfxp, void* fbuf, void* cvgSave) {
+void func_800C1B24(PreRender* this, Gfx** gfxp, void* fbuf, void* cvgSave) {
Gfx* gfx;
s32 x;
s32 x2;
@@ -236,7 +236,7 @@ void func_800C1B24(PreRenderContext* this, Gfx** gfxp, void* fbuf, void* cvgSave
*gfxp = gfx;
}
-void func_800C1E9C(PreRenderContext* this, Gfx** gfxp) {
+void func_800C1E9C(PreRender* this, Gfx** gfxp) {
LogUtils_CheckNullPointer("this->zbuf_save", this->zbufSave, "../PreRender.c", 481);
LogUtils_CheckNullPointer("this->zbuf", this->zbuf, "../PreRender.c", 482);
@@ -245,7 +245,7 @@ void func_800C1E9C(PreRenderContext* this, Gfx** gfxp) {
}
}
-void func_800C1F20(PreRenderContext* this, Gfx** gfxp) {
+void func_800C1F20(PreRender* this, Gfx** gfxp) {
LogUtils_CheckNullPointer("this->fbuf_save", this->fbufSave, "../PreRender.c", 495);
LogUtils_CheckNullPointer("this->fbuf", this->fbuf, "../PreRender.c", 496);
@@ -254,7 +254,7 @@ void func_800C1F20(PreRenderContext* this, Gfx** gfxp) {
}
}
-void func_800C1FA4(PreRenderContext* this, Gfx** gfxp) {
+void func_800C1FA4(PreRender* this, Gfx** gfxp) {
Gfx* gfx = *gfxp;
gDPPipeSync(gfx++);
@@ -271,7 +271,7 @@ void func_800C1FA4(PreRenderContext* this, Gfx** gfxp) {
*gfxp = gfx;
}
-void func_800C20B4(PreRenderContext* this, Gfx** gfxp) {
+void func_800C20B4(PreRender* this, Gfx** gfxp) {
func_800C1FA4(this, gfxp);
LogUtils_CheckNullPointer("this->cvg_save", this->cvgSave, "../PreRender.c", 532);
if (this->cvgSave != NULL) {
@@ -279,11 +279,11 @@ void func_800C20B4(PreRenderContext* this, Gfx** gfxp) {
}
}
-void func_800C2118(PreRenderContext* this, Gfx** gfxp) {
+void func_800C2118(PreRender* this, Gfx** gfxp) {
func_800C0F28(this, gfxp, this->zbufSave, this->zbuf);
}
-void func_800C213C(PreRenderContext* this, Gfx** gfxp) {
+void func_800C213C(PreRender* this, Gfx** gfxp) {
Gfx* gfx;
s32 y;
s32 y2;
@@ -341,15 +341,15 @@ void func_800C213C(PreRenderContext* this, Gfx** gfxp) {
}
}
-void func_800C24BC(PreRenderContext* this, Gfx** gfxp) {
+void func_800C24BC(PreRender* this, Gfx** gfxp) {
func_800C0F28(this, gfxp, this->fbufSave, this->fbuf);
}
-void func_800C24E0(PreRenderContext* this, Gfx** gfxp) {
+void func_800C24E0(PreRender* this, Gfx** gfxp) {
func_800C1258(this, gfxp);
}
-void func_800C2500(PreRenderContext* this, s32 x, s32 y) {
+void func_800C2500(PreRender* this, s32 x, s32 y) {
s32 i;
s32 j;
s32 buffA[3 * 5];
@@ -469,7 +469,7 @@ void func_800C2500(PreRenderContext* this, s32 x, s32 y) {
this->fbufSave[x + y * this->width] = pxOut.rgba;
}
-void func_800C2FE4(PreRenderContext* this) {
+void func_800C2FE4(PreRender* this) {
s32 x;
s32 y;
s32 phi_v0;
@@ -539,7 +539,7 @@ void func_800C2FE4(PreRenderContext* this) {
}
}
-void PreRender_Calc(PreRenderContext* this) {
+void PreRender_Calc(PreRender* this) {
s32 x;
s32 y;