* gfx.h

* move rcp functions and variables to gfx.h

* minor cleanup

* Update include/gfx.h

Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>

* format

---------

Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
This commit is contained in:
Anghelo Carvajal
2023-05-26 20:54:30 -04:00
committed by GitHub
parent c84eab6efb
commit 74d881e921
8 changed files with 203 additions and 209 deletions
+2 -2
View File
@@ -897,8 +897,8 @@ void func_8012C240(GraphicsContext* gfxCtx) {
gSPDisplayList(gfxCtx->polyXlu.p++, &sSetupDL[6 * 0x19]);
}
void func_8012C268(PlayState* play) {
func_8012C28C(play->state.gfxCtx);
void func_8012C268(GameState* gameState) {
func_8012C28C(gameState->gfxCtx);
}
void func_8012C28C(GraphicsContext* gfxCtx) {
+2 -2
View File
@@ -18,7 +18,7 @@ void Room_DrawNormal(PlayState* play, Room* room, u32 flags) {
if (flags & ROOM_DRAW_OPA) {
func_800BCBF4(&sZeroVec, play);
gSPSegment(POLY_OPA_DISP++, 0x03, room->segment);
func_8012C268(play);
func_8012C268(&play->state);
gSPMatrix(POLY_OPA_DISP++, &gIdentityMtx, G_MTX_MODELVIEW | G_MTX_LOAD);
}
@@ -85,7 +85,7 @@ void Room_DrawCullable(PlayState* play, Room* room, u32 flags) {
if (play->roomCtx.unk74 != NULL) {
gSPSegment(POLY_OPA_DISP++, 0x06, play->roomCtx.unk74);
}
func_8012C268(play);
func_8012C268(&play->state);
gSPMatrix(POLY_OPA_DISP++, &gIdentityMtx, G_MTX_MODELVIEW | G_MTX_LOAD);
}