2020-10-03 15:22:44 +00:00
|
|
|
#include "global.h"
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-05-18 18:24:00 +00:00
|
|
|
void func_80026230(GlobalContext* globalCtx, Color_RGBA8* color, s16 arg2, s16 arg3) {
|
|
|
|
f32 cos;
|
|
|
|
Gfx* displayListHead;
|
|
|
|
f32 absCos;
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_eff_ss_dead.c", 113);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
displayListHead = oGfxCtx->polyOpa.p;
|
2020-05-18 18:24:00 +00:00
|
|
|
cos = Math_Coss((0x8000 / arg3) * arg2);
|
|
|
|
absCos = ABS(cos);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-05-18 18:24:00 +00:00
|
|
|
gDPPipeSync(displayListHead++);
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-05-18 18:24:00 +00:00
|
|
|
if (color == NULL) {
|
2020-07-17 01:37:53 +00:00
|
|
|
gDPSetFogColor(displayListHead++, 255, 0, 0, 0);
|
2020-05-18 18:24:00 +00:00
|
|
|
} else {
|
|
|
|
gDPSetFogColor(displayListHead++, color->r, color->g, color->b, color->a);
|
|
|
|
}
|
2020-03-17 04:31:30 +00:00
|
|
|
|
2020-05-18 18:24:00 +00:00
|
|
|
gSPFogPosition(displayListHead++, 0, (s16)(absCos * 3000.0f) + 1500);
|
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
oGfxCtx->polyOpa.p = displayListHead;
|
2020-05-18 18:24:00 +00:00
|
|
|
|
|
|
|
if (1) {} // Necessary to match
|
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_eff_ss_dead.c", 129);
|
2020-05-18 18:24:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void func_80026400(GlobalContext* globalCtx, Color_RGBA8* color, s16 arg2, s16 arg3) {
|
|
|
|
Gfx* displayListHead;
|
|
|
|
f32 cos;
|
|
|
|
|
|
|
|
if (arg3 != 0) {
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_eff_ss_dead.c", 141);
|
2020-05-18 18:24:00 +00:00
|
|
|
|
|
|
|
cos = Math_Coss((0x4000 / arg3) * arg2);
|
2020-08-29 23:00:17 +00:00
|
|
|
displayListHead = oGfxCtx->polyOpa.p;
|
2020-05-18 18:24:00 +00:00
|
|
|
|
|
|
|
gDPPipeSync(displayListHead++);
|
|
|
|
gDPSetFogColor(displayListHead++, color->r, color->g, color->b, color->a);
|
|
|
|
gSPFogPosition(displayListHead++, 0, (s16)(2800.0f * ABS(cos)) + 1700);
|
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
oGfxCtx->polyOpa.p = displayListHead;
|
2020-05-18 18:24:00 +00:00
|
|
|
|
|
|
|
if (1) {} // Necessary to match
|
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_eff_ss_dead.c", 153);
|
2020-05-18 18:24:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void func_80026608(GlobalContext* globalCtx) {
|
|
|
|
s32 pad;
|
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_eff_ss_dead.c", 159);
|
2020-05-18 18:24:00 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
gDPPipeSync(oGfxCtx->polyOpa.p++);
|
|
|
|
oGfxCtx->polyOpa.p = func_800BC8A0(globalCtx, oGfxCtx->polyOpa.p);
|
2020-05-18 18:24:00 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_eff_ss_dead.c", 164);
|
2020-05-18 18:24:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void func_80026690(GlobalContext* globalCtx, Color_RGBA8* color, s16 arg2, s16 arg3) {
|
|
|
|
f32 cos;
|
|
|
|
Gfx* displayListHead;
|
|
|
|
f32 absCos;
|
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_eff_ss_dead.c", 178);
|
2020-05-18 18:24:00 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
displayListHead = oGfxCtx->polyXlu.p;
|
2020-05-18 18:24:00 +00:00
|
|
|
cos = Math_Coss((0x8000 / arg3) * arg2);
|
|
|
|
absCos = ABS(cos);
|
|
|
|
|
|
|
|
gDPPipeSync(displayListHead++);
|
|
|
|
|
|
|
|
if (color == NULL) {
|
2020-07-17 01:37:53 +00:00
|
|
|
gDPSetFogColor(displayListHead++, 255, 0, 0, 0);
|
2020-05-18 18:24:00 +00:00
|
|
|
} else {
|
|
|
|
gDPSetFogColor(displayListHead++, color->r, color->g, color->b, color->a);
|
|
|
|
}
|
|
|
|
|
|
|
|
gSPFogPosition(displayListHead++, 0, (s16)(absCos * 3000.0f) + 1500);
|
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
oGfxCtx->polyXlu.p = displayListHead;
|
2020-05-18 18:24:00 +00:00
|
|
|
|
|
|
|
if (1) {} // Necessary to match
|
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_eff_ss_dead.c", 194);
|
2020-05-18 18:24:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void func_80026860(GlobalContext* globalCtx, Color_RGBA8* color, s16 arg2, s16 arg3) {
|
|
|
|
f32 cos;
|
|
|
|
Gfx* displayListHead;
|
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_eff_ss_dead.c", 201);
|
2020-05-18 18:24:00 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
displayListHead = oGfxCtx->polyXlu.p;
|
2020-05-18 18:24:00 +00:00
|
|
|
cos = Math_Coss((0x4000 / arg3) * arg2);
|
|
|
|
|
|
|
|
gDPPipeSync(displayListHead++);
|
|
|
|
gDPSetFogColor(displayListHead++, color->r, color->g, color->b, color->a);
|
|
|
|
gSPFogPosition(displayListHead++, 0, (s16)(2800.0f * ABS(cos)) + 1700);
|
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
oGfxCtx->polyXlu.p = displayListHead;
|
2020-05-18 18:24:00 +00:00
|
|
|
|
|
|
|
if (1) {} // Necessary to match
|
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_eff_ss_dead.c", 212);
|
2020-05-18 18:24:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void func_80026A6C(GlobalContext* globalCtx) {
|
|
|
|
s32 pad;
|
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
OPEN_DISPS(globalCtx->state.gfxCtx, "../z_eff_ss_dead.c", 217);
|
2020-05-18 18:24:00 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
gDPPipeSync(oGfxCtx->polyXlu.p++);
|
|
|
|
oGfxCtx->polyXlu.p = func_800BC8A0(globalCtx, oGfxCtx->polyXlu.p);
|
2020-05-18 18:24:00 +00:00
|
|
|
|
2020-08-29 23:00:17 +00:00
|
|
|
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_eff_ss_dead.c", 222);
|
2020-05-18 18:24:00 +00:00
|
|
|
}
|