mirror of
https://github.com/zeldaret/mm.git
synced 2026-07-09 05:43:18 -04:00
gfx.h (#1248)
* 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:
+2
-2
@@ -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
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user