mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-08 07:20:16 +00:00
Introduce OPEN_DISPS/CLOSE_DISPS macros (#360)
This commit is contained in:
parent
1f1b5e39f5
commit
2a2fdf7f3e
134 changed files with 3133 additions and 3775 deletions
|
@ -149,21 +149,18 @@ void OceffSpot_Update(Actor* thisx, GlobalContext* globalCtx) {
|
|||
|
||||
void OceffSpot_Draw(Actor* thisx, GlobalContext* globalCtx) {
|
||||
OceffSpot* this = THIS;
|
||||
u32 scroll;
|
||||
GraphicsContext* gfxCtx;
|
||||
Gfx* dispRefs[4];
|
||||
u32 scroll = globalCtx->state.frames & 0xFFFF;
|
||||
|
||||
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_oceff_spot.c", 466);
|
||||
|
||||
scroll = globalCtx->state.frames & 0xFFFF;
|
||||
gfxCtx = globalCtx->state.gfxCtx;
|
||||
Graph_OpenDisps(dispRefs, globalCtx->state.gfxCtx, "../z_oceff_spot.c", 466);
|
||||
func_80093D84(globalCtx->state.gfxCtx);
|
||||
|
||||
gSPMatrix(gfxCtx->polyXlu.p++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_oceff_spot.c", 469),
|
||||
gSPMatrix(oGfxCtx->polyXlu.p++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_oceff_spot.c", 469),
|
||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
gSPDisplayList(gfxCtx->polyXlu.p++, sTextureDL);
|
||||
gSPDisplayList(gfxCtx->polyXlu.p++, Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, scroll * 2, scroll * (-2), 32, 32,
|
||||
1, 0, scroll * (-8), 32, 32));
|
||||
gSPDisplayList(gfxCtx->polyXlu.p++, sCylinderDl);
|
||||
gSPDisplayList(oGfxCtx->polyXlu.p++, sTextureDL);
|
||||
gSPDisplayList(oGfxCtx->polyXlu.p++, Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, scroll * 2, scroll * (-2), 32, 32,
|
||||
1, 0, scroll * (-8), 32, 32));
|
||||
gSPDisplayList(oGfxCtx->polyXlu.p++, sCylinderDl);
|
||||
|
||||
Graph_CloseDisps(dispRefs, globalCtx->state.gfxCtx, "../z_oceff_spot.c", 485);
|
||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_oceff_spot.c", 485);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue