mirror of
https://github.com/zeldaret/mm.git
synced 2026-05-23 15:01:32 -04:00
158d1b26b0
* PlayState rename * Make this work with the latest master and run format * Respond to hensldm's review * Respond to Elliptic's review * Add Effect_GetPlayState to namefixer.py * Add missed comma
40 lines
919 B
C
40 lines
919 B
C
#include "global.h"
|
|
|
|
/**
|
|
* Draws a display list to the opaque display buffer
|
|
*/
|
|
void Gfx_DrawDListOpa(PlayState* play, Gfx* dlist) {
|
|
Gfx* dl;
|
|
|
|
OPEN_DISPS(play->state.gfxCtx);
|
|
|
|
dl = POLY_OPA_DISP;
|
|
|
|
gSPDisplayList(&dl[0], &sSetupDL[6 * 0x19]);
|
|
gSPMatrix(&dl[1], Matrix_NewMtx(play->state.gfxCtx), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
|
gSPDisplayList(&dl[2], dlist);
|
|
|
|
POLY_OPA_DISP = &dl[3];
|
|
|
|
CLOSE_DISPS(play->state.gfxCtx);
|
|
}
|
|
|
|
/**
|
|
* Draws a display list to the translucent display buffer
|
|
*/
|
|
void Gfx_DrawDListXlu(PlayState* play, Gfx* dlist) {
|
|
Gfx* dl;
|
|
|
|
OPEN_DISPS(play->state.gfxCtx);
|
|
|
|
dl = POLY_XLU_DISP;
|
|
|
|
gSPDisplayList(&dl[0], &sSetupDL[6 * 0x19]);
|
|
gSPMatrix(&dl[1], Matrix_NewMtx(play->state.gfxCtx), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
|
gSPDisplayList(&dl[2], dlist);
|
|
|
|
POLY_XLU_DISP = &dl[3];
|
|
|
|
CLOSE_DISPS(play->state.gfxCtx);
|
|
}
|