2022-03-21 21:51:23 -04:00
|
|
|
#include "global.h"
|
|
|
|
|
2022-11-06 03:24:34 -05:00
|
|
|
void Gfx_DrawDListOpa(PlayState* play, Gfx* dlist) {
|
|
|
|
OPEN_DISPS(play->state.gfxCtx);
|
2022-03-21 21:51:23 -04:00
|
|
|
|
2022-11-29 18:29:36 -05:00
|
|
|
Gfx_SetupDL_25Opa(play->state.gfxCtx);
|
2022-11-06 03:24:34 -05:00
|
|
|
gSPMatrix(POLY_OPA_DISP++, MATRIX_NEWMTX(play->state.gfxCtx),
|
2022-03-21 21:51:23 -04:00
|
|
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
2023-04-27 19:20:41 -04:00
|
|
|
|
|
|
|
if (ResourceMgr_OTRSigCheck(dlist) == 1)
|
|
|
|
gsSPPushCD(POLY_OPA_DISP++, dlist);
|
|
|
|
|
|
|
|
gSPDisplayList(POLY_OPA_DISP++, dlist);
|
2022-03-21 21:51:23 -04:00
|
|
|
|
2022-11-06 03:24:34 -05:00
|
|
|
CLOSE_DISPS(play->state.gfxCtx);
|
2022-03-21 21:51:23 -04:00
|
|
|
}
|
|
|
|
|
2022-11-06 03:24:34 -05:00
|
|
|
void Gfx_DrawDListXlu(PlayState* play, Gfx* dlist) {
|
|
|
|
OPEN_DISPS(play->state.gfxCtx);
|
2022-03-21 21:51:23 -04:00
|
|
|
|
2022-11-29 18:29:36 -05:00
|
|
|
Gfx_SetupDL_25Xlu(play->state.gfxCtx);
|
2022-11-06 03:24:34 -05:00
|
|
|
gSPMatrix(POLY_XLU_DISP++, MATRIX_NEWMTX(play->state.gfxCtx),
|
2022-03-21 21:51:23 -04:00
|
|
|
G_MTX_MODELVIEW | G_MTX_LOAD);
|
2023-04-27 19:20:41 -04:00
|
|
|
|
|
|
|
if (ResourceMgr_OTRSigCheck(dlist) == 1)
|
|
|
|
gsSPPushCD(POLY_XLU_DISP++, dlist);
|
|
|
|
|
2022-03-21 21:51:23 -04:00
|
|
|
gSPDisplayList(POLY_XLU_DISP++, dlist);
|
|
|
|
|
2022-11-06 03:24:34 -05:00
|
|
|
CLOSE_DISPS(play->state.gfxCtx);
|
2022-03-21 21:51:23 -04:00
|
|
|
}
|