2020-10-03 15:22:44 +00:00
|
|
|
#include "global.h"
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
Gfx sSetupDL[SETUPDL_MAX][6] = {
|
2021-09-14 13:43:16 +00:00
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_0 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineLERP(PRIMITIVE, ENVIRONMENT, TEXEL0, ENVIRONMENT, PRIMITIVE, 0, TEXEL0, 0, 0, 0, 0, COMBINED, 0,
|
|
|
|
0, 0, COMBINED),
|
|
|
|
gsDPSetOtherMode(G_AD_NOISE | G_CD_NOISE | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_2CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_FOG_SHADE_A | G_RM_ZB_CLD_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_FOG | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_1 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_PASS2),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_2CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_FOG_SHADE_A | G_RM_AA_OPA_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_SHADE | G_CULL_BACK | G_FOG | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_2 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_AA_ZB_OPA_SURF | G_RM_AA_ZB_OPA_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_3 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_PASS2),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_2CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_FOG_SHADE_A | G_RM_AA_ZB_OPA_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_FOG | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_4 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
|
|
gsDPSetCombineLERP(PRIMITIVE, 0, SHADE, 0, 0, 0, 0, PRIMITIVE, PRIMITIVE, 0, SHADE, 0, 0, 0, 0, PRIMITIVE),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_AA_ZB_XLU_SURF | G_RM_AA_ZB_XLU_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_5 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEI_PRIM, G_CC_MODULATEI_PRIM),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_AA_ZB_XLU_SURF | G_RM_AA_ZB_XLU_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_6 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_PASS2),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_2CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_FOG_SHADE_A | G_RM_AA_TEX_EDGE2),
|
|
|
|
gsSPLoadGeometryMode(G_SHADE | G_FOG | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_7 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIA_PRIM, G_CC_MODULATEIA_PRIM),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_AA_XLU_SURF | G_RM_AA_XLU_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_SHADE | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_8 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_AA_OPA_SURF | G_RM_AA_OPA_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_SHADE | G_CULL_BACK | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_9 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA2),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_2CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_FOG_SHADE_A | G_RM_AA_XLU_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_SHADE | G_FOG | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_10 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIDECALA, G_CC_MODULATEIDECALA),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_AA_OPA_SURF | G_RM_AA_OPA_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_SHADE | G_CULL_BACK | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_11 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIDECALA, G_CC_MODULATEIA_PRIM2),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_2CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_FOG_SHADE_A | G_RM_AA_OPA_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_SHADE | G_CULL_BACK | G_FOG | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_12 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEI_PRIM, G_CC_MODULATEI_PRIM),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_AA_OPA_SURF | G_RM_AA_OPA_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_SHADE | G_CULL_BACK | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_13 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIA_PRIM, G_CC_MODULATEIA_PRIM),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_XLU_SURF | G_RM_XLU_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_SHADE | G_CULL_BACK | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_14 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_AA_ZB_TEX_EDGE | G_RM_AA_ZB_TEX_EDGE2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_15 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_PASS2),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_2CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_FOG_SHADE_A | G_RM_AA_ZB_TEX_EDGE2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_FOG | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_16 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIA_PRIM, G_CC_MODULATEIA_PRIM2),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_2CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_FOG_SHADE_A | G_RM_AA_ZB_XLU_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_FOG | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_17 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIDECALA, G_CC_MODULATEIDECALA),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_AA_ZB_TEX_EDGE | G_RM_AA_ZB_TEX_EDGE2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_18 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIDECALA, G_CC_PASS2),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_2CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_FOG_SHADE_A | G_RM_AA_ZB_TEX_EDGE2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_FOG | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_19 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIA_PRIM, G_CC_MODULATEIA_PRIM),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | AA_EN | Z_CMP | IM_RD | CVG_DST_FULL | ZMODE_OPA | CVG_X_ALPHA |
|
|
|
|
FORCE_BL | GBL_c1(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA) |
|
|
|
|
GBL_c2(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA)),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_20 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIA_PRIM, G_CC_MODULATEIA_PRIM),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_THRESHOLD | G_ZS_PIXEL | G_RM_ZB_CLD_SURF | G_RM_ZB_CLD_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_21 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_AA_ZB_XLU_SURF | G_RM_AA_ZB_XLU_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_22 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA2),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_2CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_FOG_SHADE_A | G_RM_AA_ZB_XLU_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_23 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIDECALA, G_CC_MODULATEIDECALA),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_AA_ZB_OPA_SURF | G_RM_AA_ZB_OPA_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_24 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIDECALA, G_CC_MODULATEIA2),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_2CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_FOG_SHADE_A | G_RM_AA_ZB_OPA_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_FOG | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_25 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIDECALA, G_CC_MODULATEIA_PRIM2),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_2CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_FOG_SHADE_A | G_RM_AA_ZB_OPA_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_FOG | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_26 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEI_PRIM, G_CC_MODULATEI_PRIM),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_AA_ZB_OPA_SURF | G_RM_AA_ZB_OPA_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_27 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEI_PRIM, G_CC_MODULATEI_PRIM),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_AA_ZB_XLU_SURF | G_RM_AA_ZB_XLU_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_28 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIDECALA_PRIM, G_CC_MODULATEIDECALA_PRIM),
|
|
|
|
gsDPSetOtherMode(G_AD_DISABLE | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_RGBA16 | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_NONE | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_THRESHOLD | G_ZS_PIXEL | G_RM_AA_TEX_EDGE | G_RM_AA_TEX_EDGE2),
|
|
|
|
gsSPLoadGeometryMode(G_SHADE | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_29 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineLERP(TEXEL0, 0, SHADE, 0, TEXEL0, 0, SHADE, 0, NOISE, 0, COMBINED, 0, 0, 0, 0, COMBINED),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_2CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_PASS | G_RM_AA_ZB_OPA_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_30 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
|
|
gsDPSetCombineMode(G_CC_PRIMITIVE, G_CC_PRIMITIVE),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_AA_ZB_XLU_LINE | G_RM_AA_ZB_XLU_LINE2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_31 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_HILITERGBA, G_CC_HILITERGBA),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_AA_ZB_OPA_SURF | G_RM_AA_ZB_OPA_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_LIGHTING | G_TEXTURE_GEN | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_32 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_HILITERGBA, G_CC_HILITERGBA),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_AA_ZB_OPA_SURF | G_RM_AA_ZB_OPA_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_LIGHTING | G_TEXTURE_GEN | G_TEXTURE_GEN_LINEAR |
|
|
|
|
G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_33 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineLERP(TEXEL0, 0, PRIMITIVE, SHADE, 1, 0, TEXEL0, SHADE, ENVIRONMENT, COMBINED, TEXEL0, COMBINED,
|
|
|
|
ENVIRONMENT, COMBINED, TEXEL0, COMBINED),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_2CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_PASS | G_RM_AA_ZB_OPA_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_LIGHTING | G_TEXTURE_GEN | G_TEXTURE_GEN_LINEAR |
|
|
|
|
G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_34 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_DECALRGB, G_CC_DECALRGB),
|
|
|
|
gsDPSetOtherMode(G_AD_DISABLE | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_NONE | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_THRESHOLD | G_ZS_PIXEL | G_RM_OPA_SURF | G_RM_OPA_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_SHADE | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_35 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_AA_ZB_XLU_DECAL | G_RM_AA_ZB_XLU_DECAL2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_36 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
|
|
gsDPSetOtherMode(G_AD_DISABLE | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_NONE | G_CYC_FILL | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_THRESHOLD | G_ZS_PIXEL | G_RM_NOOP | G_RM_NOOP2),
|
|
|
|
gsSPLoadGeometryMode(G_SHADE | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_37 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
|
|
gsDPSetCombineLERP(PRIMITIVE, 0, SHADE, 0, 0, 0, 0, PRIMITIVE, 0, 0, 0, COMBINED, 0, 0, 0, COMBINED),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_2CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_FOG_SHADE_A | G_RM_AA_ZB_OPA_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_FOG | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_38 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_AA_ZB_XLU_SURF | G_RM_AA_ZB_XLU_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_39 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIA_PRIM, G_CC_MODULATEIA_PRIM),
|
|
|
|
gsDPSetOtherMode(G_AD_DISABLE | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_NONE | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_THRESHOLD | G_ZS_PIXEL | G_RM_XLU_SURF | G_RM_XLU_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_40 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineLERP(TEXEL1, TEXEL0, PRIMITIVE_ALPHA, TEXEL0, TEXEL1, TEXEL0, PRIMITIVE, TEXEL0, 0, 0, 0,
|
|
|
|
COMBINED, 0, 0, 0, COMBINED),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_2CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_OPA_SURF | G_RM_OPA_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_SHADE | G_CULL_FRONT | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_41 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_ZB_XLU_SURF | G_RM_ZB_XLU_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_42 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIDECALA, G_CC_MODULATEIDECALA),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_XLU_SURF | G_RM_XLU_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_SHADE | G_CULL_BACK | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_43 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIDECALA_PRIM, G_CC_MODULATEIDECALA_PRIM),
|
|
|
|
gsDPSetOtherMode(G_AD_DISABLE | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_RGBA16 | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_NONE | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_THRESHOLD | G_ZS_PIXEL | G_RM_XLU_SURF | G_RM_XLU_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_SHADE | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_44 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIA_PRIM, G_CC_PASS2),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_2CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_FOG_SHADE_A | G_RM_ZB_OVL_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_FOG | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_45 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineLERP(0, 0, 0, PRIMITIVE, 0, 0, 0, TEXEL0, 0, 0, 0, PRIMITIVE, 0, 0, 0, TEXEL0),
|
|
|
|
gsDPSetOtherMode(G_AD_DISABLE | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_NONE | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_THRESHOLD | G_ZS_PIXEL | G_RM_XLU_SURF | G_RM_XLU_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_SHADE | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_46 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineLERP(0, 0, 0, PRIMITIVE, 0, 0, 0, TEXEL0, 0, 0, 0, PRIMITIVE, 0, 0, 0, TEXEL0),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_XLU_SURF | G_RM_XLU_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_SHADE | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_47 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEI_PRIM, G_CC_MODULATEI_PRIM),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_ZB_XLU_SURF | G_RM_ZB_XLU_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_48 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
|
|
gsDPSetCombineMode(G_CC_PRIMITIVE, G_CC_PRIMITIVE),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_AA_XLU_SURF | G_RM_AA_XLU_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_SHADE | G_CULL_BACK | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_49 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
|
|
gsDPSetCombineLERP(PRIMITIVE, 0, SHADE, 0, 0, 0, 0, PRIMITIVE, PRIMITIVE, 0, SHADE, 0, 0, 0, 0, PRIMITIVE),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_AA_XLU_SURF | G_RM_AA_XLU_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_SHADE | G_CULL_BACK | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_50 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIA_PRIM, G_CC_MODULATEIA_PRIM),
|
|
|
|
gsDPSetOtherMode(G_AD_DISABLE | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_NONE | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_THRESHOLD | G_ZS_PIXEL | G_RM_OPA_SURF | G_RM_OPA_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_CULL_BACK),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_51 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIA_PRIM, G_CC_MODULATEIA_PRIM),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_XLU_SURF | G_RM_XLU_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_CULL_BACK),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_52 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIA_PRIM, G_CC_MODULATEIA_PRIM),
|
|
|
|
gsDPSetOtherMode(G_AD_DISABLE | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_NONE | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_THRESHOLD | G_ZS_PIXEL | G_RM_XLU_SURF | G_RM_XLU_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_CULL_BACK),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_53 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineLERP(TEXEL1, TEXEL0, ENV_ALPHA, TEXEL0, TEXEL1, TEXEL0, ENVIRONMENT, TEXEL0, PRIMITIVE,
|
|
|
|
ENVIRONMENT, COMBINED, ENVIRONMENT, COMBINED, 0, PRIMITIVE, 0),
|
|
|
|
gsDPSetOtherMode(G_AD_DISABLE | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_NONE | G_CYC_2CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_THRESHOLD | G_ZS_PIXEL | G_RM_OPA_SURF | G_RM_OPA_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_CULL_BACK),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_54 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineLERP(TEXEL1, TEXEL0, ENV_ALPHA, TEXEL0, TEXEL1, TEXEL0, ENVIRONMENT, TEXEL0, PRIMITIVE,
|
|
|
|
ENVIRONMENT, COMBINED, ENVIRONMENT, COMBINED, 0, PRIMITIVE, 0),
|
|
|
|
gsDPSetOtherMode(G_AD_DISABLE | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_NONE | G_CYC_2CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_THRESHOLD | G_ZS_PIXEL | G_RM_PASS | G_RM_XLU_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_CULL_BACK),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_55 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineLERP(TEXEL1, TEXEL0, ENV_ALPHA, TEXEL0, TEXEL1, TEXEL0, ENVIRONMENT, TEXEL0, PRIMITIVE,
|
|
|
|
ENVIRONMENT, COMBINED, ENVIRONMENT, COMBINED, 0, PRIMITIVE, 0),
|
|
|
|
gsDPSetOtherMode(G_AD_DISABLE | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_NONE | G_CYC_2CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_THRESHOLD | G_ZS_PIXEL | G_RM_PASS | G_RM_XLU_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_CULL_BACK),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_56 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIA_PRIM, G_CC_MODULATEIA_PRIM),
|
|
|
|
gsDPSetOtherMode(G_AD_DISABLE | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_POINT | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_NONE | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_THRESHOLD | G_ZS_PIXEL | G_RM_XLU_SURF | G_RM_XLU_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_SHADE | G_CULL_BACK | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_57 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
|
|
gsDPSetCombineMode(G_CC_PRIMITIVE, G_CC_PRIMITIVE),
|
|
|
|
gsDPSetOtherMode(G_AD_DISABLE | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_NONE | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_THRESHOLD | G_ZS_PIXEL | G_RM_CLD_SURF | G_RM_CLD_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_58 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
|
|
gsDPSetCombineLERP(PRIMITIVE, 0, SHADE, 0, PRIMITIVE, 0, SHADE, 0, PRIMITIVE, 0, SHADE, 0, PRIMITIVE, 0, SHADE,
|
|
|
|
0),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_CLD_SURF | G_RM_CLD_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_59 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineLERP(TEXEL0, 0, PRIMITIVE, SHADE, 1, 0, TEXEL0, SHADE, ENVIRONMENT, COMBINED, TEXEL0, COMBINED,
|
|
|
|
ENVIRONMENT, COMBINED, TEXEL0, COMBINED),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_2CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_PASS | G_RM_AA_OPA_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_SHADE | G_CULL_BACK | G_LIGHTING | G_TEXTURE_GEN | G_TEXTURE_GEN_LINEAR |
|
|
|
|
G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_60 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineLERP(PRIMITIVE, ENVIRONMENT, TEXEL0, ENVIRONMENT, PRIMITIVE, 0, TEXEL0, 0, PRIMITIVE, ENVIRONMENT,
|
|
|
|
TEXEL0, ENVIRONMENT, PRIMITIVE, 0, TEXEL0, 0),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_ZB_CLD_SURF | G_RM_ZB_CLD_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_61 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineLERP(PRIMITIVE, ENVIRONMENT, TEXEL0, ENVIRONMENT, PRIMITIVE, 0, TEXEL0, 0, PRIMITIVE, ENVIRONMENT,
|
|
|
|
TEXEL0, ENVIRONMENT, PRIMITIVE, 0, TEXEL0, 0),
|
|
|
|
gsDPSetOtherMode(G_AD_NOISE | G_CD_NOISE | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_ZB_CLD_SURF | G_RM_ZB_CLD_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_62 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIDECALA, G_CC_MODULATEIA_PRIM2),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_DISABLE | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_2CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_FOG_SHADE_A | G_RM_AA_ZB_OPA_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_FOG | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_63 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIA_PRIM, G_CC_MODULATEIA_PRIM),
|
|
|
|
gsDPSetOtherMode(G_AD_DISABLE | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_NONE | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_THRESHOLD | G_ZS_PIXEL | Z_UPD | IM_RD | CVG_DST_SAVE | ZMODE_OPA | FORCE_BL |
|
|
|
|
GBL_c1(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA) |
|
|
|
|
GBL_c2(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA)),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_64 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
|
|
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_PASS2),
|
|
|
|
gsDPSetOtherMode(G_AD_DISABLE | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_NONE | G_CYC_2CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_THRESHOLD | G_ZS_PIXEL | G_RM_PASS | G_RM_XLU_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_SHADE | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_65 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIA_PRIM, G_CC_MODULATEIA_PRIM),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_THRESHOLD | G_ZS_PIXEL | G_RM_CLD_SURF | G_RM_CLD_SURF2),
|
|
|
|
gsSPLoadGeometryMode(G_SHADE | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_66 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_THRESHOLD | G_ZS_PIXEL | Z_CMP | Z_UPD | CVG_DST_FULL | ZMODE_OPA | CVG_X_ALPHA |
|
|
|
|
ALPHA_CVG_SEL | G_RM_PASS | GBL_c2(G_BL_CLR_IN, G_BL_0, G_BL_CLR_IN, G_BL_1)),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_67 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIA_PRIM, G_CC_MODULATEIA_PRIM),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_THRESHOLD | G_ZS_PIXEL | Z_CMP | Z_UPD | CVG_DST_FULL | ZMODE_OPA | CVG_X_ALPHA |
|
|
|
|
ALPHA_CVG_SEL | G_RM_PASS | GBL_c2(G_BL_CLR_IN, G_BL_0, G_BL_CLR_IN, G_BL_1)),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_68 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_THRESHOLD | G_ZS_PIXEL | Z_CMP | Z_UPD | IM_RD | CVG_DST_FULL | ZMODE_OPA | CVG_X_ALPHA |
|
|
|
|
ALPHA_CVG_SEL | GBL_c1(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_A_MEM) |
|
|
|
|
GBL_c2(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_A_MEM)),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_69 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_MODULATEIA_PRIM, G_CC_MODULATEIA_PRIM),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_THRESHOLD | G_ZS_PIXEL | Z_CMP | Z_UPD | IM_RD | CVG_DST_FULL | ZMODE_OPA | CVG_X_ALPHA |
|
|
|
|
ALPHA_CVG_SEL | GBL_c1(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_A_MEM) |
|
|
|
|
GBL_c2(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_A_MEM)),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 22:25:48 +00:00
|
|
|
/* SETUPDL_70 */
|
2021-09-14 13:43:16 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
|
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_THRESHOLD | G_ZS_PIXEL | Z_CMP | Z_UPD | CVG_DST_FULL | ZMODE_OPA | CVG_X_ALPHA |
|
|
|
|
ALPHA_CVG_SEL | G_RM_PASS | GBL_c2(G_BL_CLR_IN, G_BL_0, G_BL_CLR_IN, G_BL_1)),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_FOG | G_SHADING_SMOOTH),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
},
|
2020-03-29 16:43:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
Gfx sFillSetupDL[] = {
|
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
2020-04-05 19:41:49 +00:00
|
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
2020-03-29 16:43:45 +00:00
|
|
|
gsDPSetOtherMode(G_AD_DISABLE | G_CD_MAGICSQ | G_CK_NONE | G_TC_FILT | G_TF_BILERP | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_PERSP | G_CYC_FILL | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PIXEL | G_RM_NOOP | G_RM_NOOP2),
|
|
|
|
gsSPLoadGeometryMode(G_ZBUFFER | G_SHADE | G_CULL_BACK | G_LIGHTING | G_SHADING_SMOOTH),
|
|
|
|
gsDPSetScissor(G_SC_NON_INTERLACE, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT),
|
2020-07-17 01:37:53 +00:00
|
|
|
gsDPSetBlendColor(0, 0, 0, 8),
|
2020-03-29 16:43:45 +00:00
|
|
|
gsSPClipRatio(FRUSTRATIO_2),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
};
|
|
|
|
|
|
|
|
// unused?
|
|
|
|
Gfx D_80127030[] = {
|
|
|
|
gsDPPipeSync(),
|
2020-07-17 01:37:53 +00:00
|
|
|
gsDPSetFillColor((GPACK_RGBA5551(255, 255, 240, 0) << 16) | GPACK_RGBA5551(255, 255, 240, 0)),
|
2020-03-29 16:43:45 +00:00
|
|
|
gsDPFillRectangle(0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1),
|
|
|
|
gsDPSetDepthSource(G_ZS_PIXEL),
|
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
};
|
|
|
|
|
|
|
|
// unused?
|
|
|
|
Gfx D_80127060[] = {
|
|
|
|
gsDPPipeSync(),
|
|
|
|
gsDPSetCycleType(G_CYC_FILL),
|
|
|
|
gsDPSetRenderMode(G_RM_NOOP, G_RM_NOOP2),
|
2020-07-17 01:37:53 +00:00
|
|
|
gsDPSetFillColor((GPACK_RGBA5551(0, 0, 0, 1) << 16) | GPACK_RGBA5551(0, 0, 0, 1)),
|
2020-03-29 16:43:45 +00:00
|
|
|
gsDPFillRectangle(0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1),
|
|
|
|
gsDPPipeSync(),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
};
|
|
|
|
|
|
|
|
Gfx gEmptyDL[] = {
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
};
|
|
|
|
|
2021-09-20 16:51:35 +00:00
|
|
|
Gfx* Gfx_SetFog(Gfx* gfx, s32 r, s32 g, s32 b, s32 a, s32 near, s32 far) {
|
|
|
|
if (far == near) {
|
|
|
|
far++;
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
2021-09-20 16:51:35 +00:00
|
|
|
|
|
|
|
ASSERT(near != far, "n != f", "../z_rcp.c", 1155);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
|
|
|
gDPSetFogColor(gfx++, r, g, b, a);
|
|
|
|
|
2021-09-20 16:51:35 +00:00
|
|
|
if (near >= 1000) {
|
2021-08-08 11:28:28 +00:00
|
|
|
gSPFogFactor(gfx++, 0, 0);
|
2021-09-20 16:51:35 +00:00
|
|
|
} else if (near >= 997) {
|
2021-08-08 11:28:28 +00:00
|
|
|
gSPFogFactor(gfx++, 0x7FFF, 0x8100);
|
2021-09-20 16:51:35 +00:00
|
|
|
} else if (near < 0) {
|
2021-08-08 11:28:28 +00:00
|
|
|
gSPFogFactor(gfx++, 0, 255);
|
2020-03-29 16:43:45 +00:00
|
|
|
} else {
|
2021-09-20 16:51:35 +00:00
|
|
|
gSPFogPosition(gfx++, near, far);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return gfx;
|
|
|
|
}
|
|
|
|
|
2021-09-20 16:51:35 +00:00
|
|
|
Gfx* Gfx_SetFogWithSync(Gfx* gfx, s32 r, s32 g, s32 b, s32 a, s32 near, s32 far) {
|
|
|
|
if (far == near) {
|
|
|
|
far++;
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
2021-09-20 16:51:35 +00:00
|
|
|
ASSERT(near != far, "n != f", "../z_rcp.c", 1187);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
|
|
|
gDPPipeSync(gfx++);
|
|
|
|
gDPSetFogColor(gfx++, r, g, b, a);
|
|
|
|
|
2021-09-20 16:51:35 +00:00
|
|
|
if (near >= 1000) {
|
2021-08-08 11:28:28 +00:00
|
|
|
gSPFogFactor(gfx++, 0, 0);
|
2021-09-20 16:51:35 +00:00
|
|
|
} else if (near >= 997) {
|
2021-08-08 11:28:28 +00:00
|
|
|
gSPFogFactor(gfx++, 0x7FFF, 0x8100);
|
2021-09-20 16:51:35 +00:00
|
|
|
} else if (near < 0) {
|
2021-08-08 11:28:28 +00:00
|
|
|
gSPFogFactor(gfx++, 0, 255);
|
2020-03-29 16:43:45 +00:00
|
|
|
} else {
|
2021-09-20 16:51:35 +00:00
|
|
|
gSPFogPosition(gfx++, near, far);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return gfx;
|
|
|
|
}
|
|
|
|
|
2021-09-20 16:51:35 +00:00
|
|
|
Gfx* Gfx_SetFog2(Gfx* gfx, s32 r, s32 g, s32 b, s32 a, s32 near, s32 far) {
|
|
|
|
return Gfx_SetFog(gfx, r, g, b, a, near, far);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
Gfx* Gfx_SetupDLImpl(Gfx* gfx, u32 i) {
|
2021-09-14 13:43:16 +00:00
|
|
|
s32 dListIndex = 6 * i;
|
|
|
|
|
|
|
|
gSPDisplayList(gfx++, &((Gfx*)sSetupDL)[dListIndex]);
|
|
|
|
// Equivalent to gSPDisplayList(gfx++, sSetupDL[i])
|
2020-03-29 16:43:45 +00:00
|
|
|
return gfx;
|
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
Gfx* Gfx_SetupDL(Gfx* gfx, u32 i) {
|
|
|
|
return Gfx_SetupDLImpl(gfx, i);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDLAtPtr(Gfx** gfxp, u32 i) {
|
|
|
|
*gfxp = Gfx_SetupDL(*gfxp, i);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
Gfx* Gfx_SetupDL_57(Gfx* gfx) {
|
|
|
|
gSPDisplayList(gfx++, sSetupDL[SETUPDL_57]);
|
2020-03-29 16:43:45 +00:00
|
|
|
return gfx;
|
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
Gfx* Gfx_SetupDL_57b(Gfx* gfx) {
|
|
|
|
gSPDisplayList(gfx++, sSetupDL[SETUPDL_57]);
|
2020-03-29 16:43:45 +00:00
|
|
|
return gfx;
|
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
Gfx* Gfx_SetupDL_52NoCD(Gfx* gfx) {
|
|
|
|
gSPDisplayList(gfx++, sSetupDL[SETUPDL_52]);
|
2020-03-29 16:43:45 +00:00
|
|
|
gDPSetColorDither(gfx++, G_CD_DISABLE);
|
|
|
|
return gfx;
|
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_58Opa(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1293);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[SETUPDL_58]);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1297);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_57Opa(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1309);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[SETUPDL_57]);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1313);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_50Opa(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1325);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[SETUPDL_50]);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1329);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_51Opa(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1341);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[SETUPDL_51]);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1345);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_52Xlu(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1357);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[SETUPDL_52]);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1361);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_53Opa(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1373);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[SETUPDL_53]);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1377);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_54Opa(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1389);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[SETUPDL_54]);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1393);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_55Xlu(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1405);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[SETUPDL_55]);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1409);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_26Opa(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1421);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[SETUPDL_26]);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1425);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_25Xlu2(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1439);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[SETUPDL_25]);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1443);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-05-21 18:23:43 +00:00
|
|
|
void func_80093C80(PlayState* play) {
|
|
|
|
GraphicsContext* gfxCtx = play->state.gfxCtx;
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
Gfx_SetupDL_25Opa(gfxCtx);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-05-21 18:23:43 +00:00
|
|
|
if (play->roomCtx.curRoom.behaviorType1 == ROOM_BEHAVIOR_TYPE1_3) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1460);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-10-29 21:31:09 +00:00
|
|
|
gDPSetColorDither(POLY_OPA_DISP++, G_CD_DISABLE);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1462);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_25Opa(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1475);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[SETUPDL_25]);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1479);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_25Xlu(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1491);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[SETUPDL_25]);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1495);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_31Opa(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1507);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[SETUPDL_31]);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1511);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_32Opa(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1523);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[SETUPDL_32]);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1527);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_33Opa(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1539);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[SETUPDL_33]);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1543);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
Gfx* Gfx_SetupDL_64(Gfx* gfx) {
|
|
|
|
gSPDisplayList(gfx++, sSetupDL[SETUPDL_64]);
|
2020-03-29 16:43:45 +00:00
|
|
|
return gfx;
|
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
Gfx* Gfx_SetupDL_34(Gfx* gfx) {
|
|
|
|
gSPDisplayList(gfx++, sSetupDL[SETUPDL_34]);
|
2020-03-29 16:43:45 +00:00
|
|
|
return gfx;
|
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_34Opa(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1569);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
POLY_OPA_DISP = Gfx_SetupDL_34(POLY_OPA_DISP);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1573);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_35Opa(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1585);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[SETUPDL_35]);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1589);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_44Xlu(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1601);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[SETUPDL_44]);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1605);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_36Opa(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1617);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[SETUPDL_36]);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1621);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
Gfx* Gfx_SetupDL_28(Gfx* gfx) {
|
|
|
|
gSPDisplayList(gfx++, sSetupDL[SETUPDL_28]);
|
2020-03-29 16:43:45 +00:00
|
|
|
return gfx;
|
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_28Opa(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1640);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[SETUPDL_28]);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1644);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_43Opa(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1651);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[SETUPDL_43]);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1655);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_45Opa(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1670);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[SETUPDL_45]);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1674);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_46Overlay(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1681);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(OVERLAY_DISP++, sSetupDL[SETUPDL_46]);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1685);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_38Xlu(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1700);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[SETUPDL_38]);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1704);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_4Xlu(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1722);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[SETUPDL_4]);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1726);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_37Opa(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1758);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[SETUPDL_37]);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1762);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_2Opa(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1775);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[SETUPDL_2]);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1779);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
Gfx* Gfx_SetupDL_39(Gfx* gfx) {
|
|
|
|
gSPDisplayList(gfx++, sSetupDL[SETUPDL_39]);
|
2020-03-29 16:43:45 +00:00
|
|
|
return gfx;
|
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_39Opa(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1799);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
POLY_OPA_DISP = Gfx_SetupDL_39(POLY_OPA_DISP);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1801);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_39Overlay(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1809);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
OVERLAY_DISP = Gfx_SetupDL_39(OVERLAY_DISP);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1811);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_39Ptr(Gfx** gfxp) {
|
2020-03-29 16:43:45 +00:00
|
|
|
Gfx* gfx = *gfxp;
|
2022-06-03 22:25:48 +00:00
|
|
|
|
|
|
|
gSPDisplayList(gfx++, sSetupDL[SETUPDL_39]);
|
2020-03-29 16:43:45 +00:00
|
|
|
*gfxp = gfx;
|
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_40Opa(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1837);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[SETUPDL_40]);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1841);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_41Opa(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1853);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[SETUPDL_41]);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1857);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_47Xlu(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1869);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[SETUPDL_47]);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1873);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
Gfx* Gfx_SetupDL_66(Gfx* gfx) {
|
|
|
|
gSPDisplayList(gfx++, sSetupDL[SETUPDL_66]);
|
2020-03-29 16:43:45 +00:00
|
|
|
return gfx;
|
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
Gfx* Gfx_SetupDL_67(Gfx* gfx) {
|
|
|
|
gSPDisplayList(gfx++, sSetupDL[SETUPDL_67]);
|
2020-03-29 16:43:45 +00:00
|
|
|
return gfx;
|
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
Gfx* Gfx_SetupDL_68NoCD(Gfx* gfx) {
|
|
|
|
gSPDisplayList(gfx++, sSetupDL[SETUPDL_68]);
|
2020-03-29 16:43:45 +00:00
|
|
|
gDPSetColorDither(gfx++, G_CD_DISABLE);
|
|
|
|
return gfx;
|
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
Gfx* Gfx_SetupDL_69NoCD(Gfx* gfx) {
|
|
|
|
gSPDisplayList(gfx++, sSetupDL[SETUPDL_69]);
|
2020-03-29 16:43:45 +00:00
|
|
|
gDPSetColorDither(gfx++, G_CD_DISABLE);
|
|
|
|
return gfx;
|
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-03-29 16:43:45 +00:00
|
|
|
Gfx* func_800947AC(Gfx* gfx) {
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(gfx++, sSetupDL[SETUPDL_65]);
|
2020-03-29 16:43:45 +00:00
|
|
|
gDPSetColorDither(gfx++, G_CD_DISABLE);
|
|
|
|
|
|
|
|
// clang-format off
|
|
|
|
switch (HREG(21)) {
|
|
|
|
case 1: gDPSetAlphaDither(gfx++, G_AD_DISABLE); break;
|
|
|
|
case 2: gDPSetAlphaDither(gfx++, G_AD_PATTERN); break;
|
|
|
|
case 3: gDPSetAlphaDither(gfx++, G_AD_NOTPATTERN); break;
|
|
|
|
case 4: gDPSetAlphaDither(gfx++, G_AD_NOISE); break;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch (HREG(22)) {
|
|
|
|
case 1: gDPSetColorDither(gfx++, G_CD_DISABLE); break;
|
|
|
|
case 2: gDPSetColorDither(gfx++, G_CD_MAGICSQ); break;
|
|
|
|
case 3: gDPSetColorDither(gfx++, G_CD_BAYER); break;
|
|
|
|
case 4: gDPSetColorDither(gfx++, G_CD_NOISE); break;
|
|
|
|
}
|
|
|
|
// clang-format on
|
|
|
|
|
|
|
|
return gfx;
|
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
Gfx* Gfx_SetupDL_70(Gfx* gfx) {
|
|
|
|
gSPDisplayList(gfx++, sSetupDL[SETUPDL_70]);
|
2020-03-29 16:43:45 +00:00
|
|
|
return gfx;
|
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
Gfx* Gfx_SetupDL_20NoCD(Gfx* gfx) {
|
|
|
|
gSPDisplayList(gfx++, sSetupDL[SETUPDL_20]);
|
2020-03-29 16:43:45 +00:00
|
|
|
gDPSetColorDither(gfx++, G_CD_DISABLE);
|
|
|
|
return gfx;
|
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_42Opa(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1953);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[SETUPDL_42]);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1957);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_42Overlay(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1964);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(OVERLAY_DISP++, sSetupDL[SETUPDL_42]);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1968);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_48Opa(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 1992);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[SETUPDL_48]);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 1996);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_49Xlu(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 2008);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[SETUPDL_49]);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 2012);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_27Xlu(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 2024);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[SETUPDL_27]);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 2028);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_60NoCDXlu(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 2040);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[SETUPDL_60]);
|
2020-10-29 21:31:09 +00:00
|
|
|
gDPSetColorDither(POLY_XLU_DISP++, G_CD_DISABLE);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 2043);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_61Xlu(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 2056);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_XLU_DISP++, sSetupDL[SETUPDL_61]);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 2058);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_56Opa(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 2086);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[SETUPDL_56]);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 2090);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_56Ptr(Gfx** gfxp) {
|
2020-03-29 16:43:45 +00:00
|
|
|
Gfx* gfx = *gfxp;
|
2020-09-27 14:14:25 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(gfx++, sSetupDL[SETUPDL_56]);
|
2020-09-27 14:14:25 +00:00
|
|
|
|
2020-03-29 16:43:45 +00:00
|
|
|
*gfxp = gfx;
|
|
|
|
}
|
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
void Gfx_SetupDL_59Opa(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 2112);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2022-06-03 22:25:48 +00:00
|
|
|
gSPDisplayList(POLY_OPA_DISP++, sSetupDL[SETUPDL_59]);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 2116);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2020-04-30 18:41:09 +00:00
|
|
|
Gfx* Gfx_BranchTexScroll(Gfx** gfxp, u32 x, u32 y, s32 width, s32 height) {
|
2020-04-04 16:12:59 +00:00
|
|
|
Gfx* displayList = Graph_DlistAlloc(gfxp, 3 * sizeof(Gfx));
|
2020-03-29 16:43:45 +00:00
|
|
|
|
|
|
|
gDPTileSync(displayList);
|
|
|
|
gDPSetTileSize(displayList + 1, 0, x, y, (x + ((width - 1) << 2)), (y + ((height - 1) << 2)));
|
|
|
|
gSPEndDisplayList(displayList + 2);
|
2020-09-27 14:14:25 +00:00
|
|
|
|
2020-04-30 18:41:09 +00:00
|
|
|
return displayList;
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
2020-04-30 18:41:09 +00:00
|
|
|
Gfx* func_80094E54(Gfx** gfxp, u32 x, u32 y) {
|
|
|
|
return Gfx_BranchTexScroll(gfxp, x, y, 0, 0);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-03-22 21:19:43 +00:00
|
|
|
Gfx* func_80094E78(GraphicsContext* gfxCtx, u32 x, u32 y) {
|
2020-03-29 16:43:45 +00:00
|
|
|
return Gfx_TexScroll(gfxCtx, x, y, 0, 0);
|
2020-03-17 04:31:30 +00:00
|
|
|
}
|
|
|
|
|
2020-03-29 16:43:45 +00:00
|
|
|
Gfx* Gfx_TexScroll(GraphicsContext* gfxCtx, u32 x, u32 y, s32 width, s32 height) {
|
2020-03-17 04:31:30 +00:00
|
|
|
Gfx* displayList = Graph_Alloc(gfxCtx, 3 * sizeof(Gfx));
|
|
|
|
|
|
|
|
x %= 2048;
|
|
|
|
y %= 2048;
|
|
|
|
|
|
|
|
gDPTileSync(displayList);
|
2020-03-22 21:19:43 +00:00
|
|
|
gDPSetTileSize(displayList + 1, 0, x, y, (x + ((width - 1) << 2)), (y + ((height - 1) << 2)));
|
|
|
|
gSPEndDisplayList(displayList + 2);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
|
|
return displayList;
|
|
|
|
}
|
|
|
|
|
2020-03-29 16:43:45 +00:00
|
|
|
Gfx* Gfx_TwoTexScroll(GraphicsContext* gfxCtx, s32 tile1, u32 x1, u32 y1, s32 width1, s32 height1, s32 tile2, u32 x2,
|
|
|
|
u32 y2, s32 width2, s32 height2) {
|
2020-03-17 04:31:30 +00:00
|
|
|
Gfx* displayList = Graph_Alloc(gfxCtx, 5 * sizeof(Gfx));
|
|
|
|
|
|
|
|
x1 %= 2048;
|
|
|
|
y1 %= 2048;
|
|
|
|
x2 %= 2048;
|
|
|
|
y2 %= 2048;
|
|
|
|
|
|
|
|
gDPTileSync(displayList);
|
2020-03-22 21:19:43 +00:00
|
|
|
gDPSetTileSize(displayList + 1, tile1, x1, y1, (x1 + ((width1 - 1) << 2)), (y1 + ((height1 - 1) << 2)));
|
|
|
|
gDPTileSync(displayList + 2);
|
|
|
|
gDPSetTileSize(displayList + 3, tile2, x2, y2, (x2 + ((width2 - 1) << 2)), (y2 + ((height2 - 1) << 2)));
|
|
|
|
gSPEndDisplayList(displayList + 4);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
|
|
return displayList;
|
|
|
|
}
|
|
|
|
|
2020-03-29 16:43:45 +00:00
|
|
|
Gfx* Gfx_TwoTexScrollEnvColor(GraphicsContext* gfxCtx, s32 tile1, u32 x1, u32 y1, s32 width1, s32 height1, s32 tile2,
|
|
|
|
u32 x2, u32 y2, s32 width2, s32 height2, s32 r, s32 g, s32 b, s32 a) {
|
2020-03-17 04:31:30 +00:00
|
|
|
Gfx* displayList = Graph_Alloc(gfxCtx, 6 * sizeof(Gfx));
|
|
|
|
|
|
|
|
x1 %= 2048;
|
|
|
|
y1 %= 2048;
|
|
|
|
x2 %= 2048;
|
|
|
|
y2 %= 2048;
|
|
|
|
|
|
|
|
gDPTileSync(displayList);
|
2020-03-22 21:19:43 +00:00
|
|
|
gDPSetTileSize(displayList + 1, tile1, x1, y1, (x1 + ((width1 - 1) << 2)), (y1 + ((height1 - 1) << 2)));
|
|
|
|
gDPTileSync(displayList + 2);
|
|
|
|
gDPSetTileSize(displayList + 3, tile2, x2, y2, (x2 + ((width2 - 1) << 2)), (y2 + ((height2 - 1) << 2)));
|
2020-03-29 16:43:45 +00:00
|
|
|
gDPSetEnvColor(displayList + 4, r, g, b, a);
|
2020-03-22 21:19:43 +00:00
|
|
|
gSPEndDisplayList(displayList + 5);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
|
|
|
return displayList;
|
|
|
|
}
|
|
|
|
|
2020-03-29 16:43:45 +00:00
|
|
|
Gfx* Gfx_EnvColor(GraphicsContext* gfxCtx, s32 r, s32 g, s32 b, s32 a) {
|
|
|
|
Gfx* displayList = Graph_Alloc(gfxCtx, 2 * sizeof(Gfx));
|
|
|
|
|
|
|
|
gDPSetEnvColor(displayList, r, g, b, a);
|
|
|
|
gSPEndDisplayList(displayList + 1);
|
|
|
|
|
|
|
|
return displayList;
|
|
|
|
}
|
|
|
|
|
|
|
|
void func_80095248(GraphicsContext* gfxCtx, u8 r, u8 g, u8 b) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 2386);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-10-29 21:31:09 +00:00
|
|
|
gSPDisplayList(POLY_OPA_DISP++, sFillSetupDL);
|
|
|
|
gSPDisplayList(POLY_XLU_DISP++, sFillSetupDL);
|
|
|
|
gSPDisplayList(OVERLAY_DISP++, sFillSetupDL);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2021-04-14 19:14:07 +00:00
|
|
|
gDPSetScissor(POLY_OPA_DISP++, G_SC_NON_INTERLACE, 0, 0, gScreenWidth, gScreenHeight);
|
|
|
|
gDPSetScissor(POLY_XLU_DISP++, G_SC_NON_INTERLACE, 0, 0, gScreenWidth, gScreenHeight);
|
|
|
|
gDPSetScissor(OVERLAY_DISP++, G_SC_NON_INTERLACE, 0, 0, gScreenWidth, gScreenHeight);
|
2020-04-16 21:36:12 +00:00
|
|
|
|
2020-10-29 21:31:09 +00:00
|
|
|
gDPSetColorImage(POLY_OPA_DISP++, G_IM_FMT_RGBA, G_IM_SIZ_16b, gScreenWidth, gfxCtx->curFrameBuffer);
|
|
|
|
gDPSetColorImage(POLY_OPA_DISP++, G_IM_FMT_RGBA, G_IM_SIZ_16b, gScreenWidth, gfxCtx->curFrameBuffer);
|
|
|
|
gDPSetColorImage(POLY_XLU_DISP++, G_IM_FMT_RGBA, G_IM_SIZ_16b, gScreenWidth, gfxCtx->curFrameBuffer);
|
|
|
|
gDPSetColorImage(OVERLAY_DISP++, G_IM_FMT_RGBA, G_IM_SIZ_16b, gScreenWidth, gfxCtx->curFrameBuffer);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-10-29 21:31:09 +00:00
|
|
|
gDPSetDepthImage(POLY_OPA_DISP++, gZBuffer);
|
|
|
|
gDPSetDepthImage(POLY_XLU_DISP++, gZBuffer);
|
|
|
|
gDPSetDepthImage(OVERLAY_DISP++, gZBuffer);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-04-30 18:41:09 +00:00
|
|
|
if ((R_PAUSE_MENU_MODE < 2) && (gTrnsnUnkState < 2)) {
|
2020-08-29 23:00:17 +00:00
|
|
|
s32 ret = ShrinkWindow_GetCurrentVal();
|
2020-03-29 16:43:45 +00:00
|
|
|
|
|
|
|
if (HREG(80) == 16) {
|
|
|
|
if (HREG(95) != 16) {
|
|
|
|
HREG(81) = 3;
|
|
|
|
HREG(82) = 3;
|
|
|
|
HREG(83) = 0;
|
|
|
|
HREG(84) = 0;
|
|
|
|
HREG(85) = 0;
|
|
|
|
HREG(86) = 0;
|
|
|
|
HREG(87) = 0;
|
|
|
|
HREG(88) = 0;
|
|
|
|
HREG(89) = 0;
|
|
|
|
HREG(90) = 0;
|
|
|
|
HREG(91) = 0;
|
|
|
|
HREG(92) = 0;
|
|
|
|
HREG(93) = 0;
|
|
|
|
HREG(94) = 0;
|
|
|
|
HREG(95) = 16;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (HREG(81) & 1) {
|
|
|
|
HREG(83) = ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (HREG(81) & 2) {
|
|
|
|
HREG(84) = r;
|
|
|
|
HREG(85) = g;
|
|
|
|
HREG(86) = b;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (HREG(82) & 1) {
|
|
|
|
ret = HREG(83);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (HREG(82) & 2) {
|
|
|
|
r = HREG(84);
|
|
|
|
g = HREG(85);
|
|
|
|
b = HREG(86);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-29 21:31:09 +00:00
|
|
|
gDPSetColorImage(POLY_OPA_DISP++, G_IM_FMT_RGBA, G_IM_SIZ_16b, gScreenWidth, gZBuffer);
|
|
|
|
gDPSetCycleType(POLY_OPA_DISP++, G_CYC_FILL);
|
|
|
|
gDPSetRenderMode(POLY_OPA_DISP++, G_RM_NOOP, G_RM_NOOP2);
|
2022-03-13 00:06:43 +00:00
|
|
|
gDPSetFillColor(POLY_OPA_DISP++, (GPACK_ZDZ(G_MAXFBZ, 0) << 16) | GPACK_ZDZ(G_MAXFBZ, 0));
|
2020-10-29 21:31:09 +00:00
|
|
|
gDPFillRectangle(POLY_OPA_DISP++, 0, ret, gScreenWidth - 1, gScreenHeight - ret - 1);
|
|
|
|
gDPPipeSync(POLY_OPA_DISP++);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
2020-10-29 21:31:09 +00:00
|
|
|
gDPSetColorImage(POLY_OPA_DISP++, G_IM_FMT_RGBA, G_IM_SIZ_16b, gScreenWidth, gfxCtx->curFrameBuffer);
|
|
|
|
gDPSetCycleType(POLY_OPA_DISP++, G_CYC_FILL);
|
|
|
|
gDPSetRenderMode(POLY_OPA_DISP++, G_RM_NOOP, G_RM_NOOP2);
|
|
|
|
gDPSetFillColor(POLY_OPA_DISP++, (GPACK_RGBA5551(r, g, b, 1) << 16) | GPACK_RGBA5551(r, g, b, 1));
|
|
|
|
gDPFillRectangle(POLY_OPA_DISP++, 0, ret, gScreenWidth - 1, gScreenHeight - ret - 1);
|
|
|
|
gDPPipeSync(POLY_OPA_DISP++);
|
2020-03-29 16:43:45 +00:00
|
|
|
|
|
|
|
if (ret > 0) {
|
2020-10-29 21:31:09 +00:00
|
|
|
gDPPipeSync(OVERLAY_DISP++);
|
|
|
|
gDPSetCycleType(OVERLAY_DISP++, G_CYC_FILL);
|
|
|
|
gDPSetRenderMode(OVERLAY_DISP++, G_RM_NOOP, G_RM_NOOP2);
|
|
|
|
gDPSetFillColor(OVERLAY_DISP++, (GPACK_RGBA5551(r, g, b, 1) << 16) | GPACK_RGBA5551(r, g, b, 1));
|
|
|
|
gDPFillRectangle(OVERLAY_DISP++, 0, 0, gScreenWidth - 1, ret - 1);
|
|
|
|
gDPFillRectangle(OVERLAY_DISP++, 0, gScreenHeight - ret, gScreenWidth - 1, gScreenHeight - 1);
|
|
|
|
gDPPipeSync(OVERLAY_DISP++);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 2497);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void func_80095974(GraphicsContext* gfxCtx) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(gfxCtx, "../z_rcp.c", 2503);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-10-29 21:31:09 +00:00
|
|
|
gSPDisplayList(POLY_OPA_DISP++, sFillSetupDL);
|
2021-04-14 19:14:07 +00:00
|
|
|
gDPSetScissor(POLY_OPA_DISP++, G_SC_NON_INTERLACE, 0, 0, gScreenWidth, gScreenHeight);
|
2020-10-29 21:31:09 +00:00
|
|
|
gDPSetDepthImage(POLY_OPA_DISP++, gZBuffer);
|
|
|
|
gDPSetColorImage(POLY_OPA_DISP++, G_IM_FMT_RGBA, G_IM_SIZ_16b, gScreenWidth, gfxCtx->curFrameBuffer);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(gfxCtx, "../z_rcp.c", 2513);
|
2020-03-29 16:43:45 +00:00
|
|
|
}
|