mirror of https://github.com/zeldaret/mm.git
40 lines
845 B
C
40 lines
845 B
C
#include "global.h"
|
|
|
|
/**
|
|
* Draws a display list to the opaque display buffer
|
|
*/
|
|
void Gfx_DrawDListOpa(PlayState* play, Gfx* dList) {
|
|
Gfx* gfx;
|
|
|
|
OPEN_DISPS(play->state.gfxCtx);
|
|
|
|
gfx = POLY_OPA_DISP;
|
|
|
|
gSPDisplayList(&gfx[0], gSetupDLs[SETUPDL_25]);
|
|
MATRIX_FINALIZE_AND_LOAD(&gfx[1], play->state.gfxCtx);
|
|
gSPDisplayList(&gfx[2], dList);
|
|
|
|
POLY_OPA_DISP = &gfx[3];
|
|
|
|
CLOSE_DISPS(play->state.gfxCtx);
|
|
}
|
|
|
|
/**
|
|
* Draws a display list to the translucent display buffer
|
|
*/
|
|
void Gfx_DrawDListXlu(PlayState* play, Gfx* dList) {
|
|
Gfx* gfx;
|
|
|
|
OPEN_DISPS(play->state.gfxCtx);
|
|
|
|
gfx = POLY_XLU_DISP;
|
|
|
|
gSPDisplayList(&gfx[0], gSetupDLs[SETUPDL_25]);
|
|
MATRIX_FINALIZE_AND_LOAD(&gfx[1], play->state.gfxCtx);
|
|
gSPDisplayList(&gfx[2], dList);
|
|
|
|
POLY_XLU_DISP = &gfx[3];
|
|
|
|
CLOSE_DISPS(play->state.gfxCtx);
|
|
}
|