2020-10-03 15:22:44 +00:00
|
|
|
#include "global.h"
|
2020-03-21 18:09:05 +00:00
|
|
|
|
2020-05-15 09:02:39 +00:00
|
|
|
// Note : This file is related to z_vismono, the original name was probably z_vis<something before "mono"
|
|
|
|
// alphabetically>
|
|
|
|
|
2020-03-22 21:19:43 +00:00
|
|
|
Gfx D_8012AC00[] = {
|
|
|
|
gsDPSetOtherMode(G_AD_PATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_CONV | G_TF_POINT | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_NONE | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PRIM | G_RM_VISCVG | G_RM_VISCVG2),
|
|
|
|
gsDPFillRectangle(0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1),
|
2020-03-21 18:09:05 +00:00
|
|
|
gsDPPipeSync(),
|
|
|
|
gsDPSetBlendColor(0, 0, 0, 8),
|
|
|
|
gsSPEndDisplayList(),
|
|
|
|
};
|
|
|
|
|
2020-03-22 21:19:43 +00:00
|
|
|
Gfx D_8012AC28[] = {
|
|
|
|
gsDPSetOtherMode(G_AD_PATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_CONV | G_TF_POINT | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_NONE | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PRIM | IM_RD | CVG_DST_CLAMP | ZMODE_OPA | FORCE_BL |
|
|
|
|
GBL_c1(G_BL_CLR_FOG, G_BL_A_FOG, G_BL_CLR_MEM, G_BL_A_MEM) |
|
|
|
|
GBL_c2(G_BL_CLR_FOG, G_BL_A_FOG, G_BL_CLR_MEM, G_BL_A_MEM)),
|
|
|
|
gsDPFillRectangle(0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1),
|
2020-03-21 18:09:05 +00:00
|
|
|
gsSPEndDisplayList(),
|
|
|
|
};
|
|
|
|
|
2020-03-22 21:19:43 +00:00
|
|
|
Gfx D_8012AC40[] = {
|
|
|
|
gsDPSetOtherMode(G_AD_PATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_CONV | G_TF_POINT | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_NONE | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PRIM | IM_RD | CVG_DST_CLAMP | ZMODE_OPA | FORCE_BL |
|
|
|
|
GBL_c1(G_BL_CLR_IN, G_BL_0, G_BL_CLR_MEM, G_BL_A_MEM) |
|
|
|
|
GBL_c2(G_BL_CLR_IN, G_BL_0, G_BL_CLR_MEM, G_BL_A_MEM)),
|
2020-03-21 20:40:18 +00:00
|
|
|
|
2020-03-22 21:19:43 +00:00
|
|
|
gsDPFillRectangle(0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1),
|
2020-03-21 18:09:05 +00:00
|
|
|
gsSPEndDisplayList(),
|
|
|
|
};
|
|
|
|
|
2020-03-22 21:19:43 +00:00
|
|
|
Gfx D_8012AC58[] = {
|
2020-04-05 19:41:49 +00:00
|
|
|
gsDPSetCombineMode(G_CC_PRIMITIVE, G_CC_PRIMITIVE),
|
2020-03-22 21:19:43 +00:00
|
|
|
gsDPSetOtherMode(G_AD_NOTPATTERN | G_CD_DISABLE | G_CK_NONE | G_TC_CONV | G_TF_POINT | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_NONE | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PRIM | G_RM_CLD_SURF | G_RM_CLD_SURF2),
|
|
|
|
gsDPFillRectangle(0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1),
|
|
|
|
gsDPSetOtherMode(G_AD_PATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_CONV | G_TF_POINT | G_TT_NONE | G_TL_TILE |
|
|
|
|
G_TD_CLAMP | G_TP_NONE | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
|
|
|
G_AC_NONE | G_ZS_PRIM | IM_RD | CVG_DST_CLAMP | ZMODE_OPA | FORCE_BL |
|
|
|
|
GBL_c1(G_BL_CLR_IN, G_BL_0, G_BL_CLR_MEM, G_BL_A_MEM) |
|
|
|
|
GBL_c2(G_BL_CLR_IN, G_BL_0, G_BL_CLR_MEM, G_BL_A_MEM)),
|
|
|
|
gsDPFillRectangle(0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1),
|
2020-03-21 18:09:05 +00:00
|
|
|
gsSPEndDisplayList(),
|
|
|
|
};
|
|
|
|
|
2020-05-15 09:02:39 +00:00
|
|
|
// Init
|
2020-03-22 21:19:43 +00:00
|
|
|
void func_800ACE70(struct_801664F0* this) {
|
2020-03-21 18:09:05 +00:00
|
|
|
this->type = 0;
|
|
|
|
this->setScissor = false;
|
2020-07-17 01:37:53 +00:00
|
|
|
this->color.r = 255;
|
|
|
|
this->color.g = 255;
|
|
|
|
this->color.b = 255;
|
|
|
|
this->color.a = 255;
|
2020-03-21 18:09:05 +00:00
|
|
|
}
|
|
|
|
|
2020-05-15 09:02:39 +00:00
|
|
|
// Destroy
|
2020-03-22 21:19:43 +00:00
|
|
|
void func_800ACE90(struct_801664F0* this) {
|
2020-03-21 18:09:05 +00:00
|
|
|
}
|
|
|
|
|
2020-05-15 09:02:39 +00:00
|
|
|
// Draw
|
2020-03-22 21:19:43 +00:00
|
|
|
void func_800ACE98(struct_801664F0* this, Gfx** gfxp) {
|
2020-03-21 18:09:05 +00:00
|
|
|
Gfx* gfx;
|
|
|
|
|
|
|
|
gfx = *gfxp;
|
|
|
|
|
|
|
|
gDPPipeSync(gfx++);
|
|
|
|
gDPSetPrimDepth(gfx++, -1, -1);
|
|
|
|
|
2020-03-22 21:19:43 +00:00
|
|
|
if (this->setScissor == true) {
|
2020-03-21 18:09:05 +00:00
|
|
|
gDPSetScissor(gfx++, G_SC_NON_INTERLACE, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
|
|
|
|
}
|
2020-03-22 21:19:43 +00:00
|
|
|
|
|
|
|
switch (this->type) {
|
2020-03-21 18:09:05 +00:00
|
|
|
case 1:
|
|
|
|
gSPDisplayList(gfx++, D_8012AC40);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
gDPSetColor(gfx++, G_SETPRIMCOLOR, this->color.rgba);
|
|
|
|
gSPDisplayList(gfx++, D_8012AC58);
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
gDPSetColor(gfx++, G_SETBLENDCOLOR, this->color.rgba);
|
|
|
|
gSPDisplayList(gfx++, D_8012AC00);
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
gDPSetColor(gfx++, G_SETFOGCOLOR, this->color.rgba);
|
|
|
|
gSPDisplayList(gfx++, D_8012AC28);
|
|
|
|
break;
|
2020-03-22 21:19:43 +00:00
|
|
|
}
|
2020-03-21 18:09:05 +00:00
|
|
|
|
|
|
|
gDPPipeSync(gfx++);
|
|
|
|
*gfxp = gfx;
|
|
|
|
}
|