Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void EnDyExtra_Draw(Actor* thisx, GlobalContext* globalCtx) {
- static Color_RGBA8_n D_809FFC40[] = { 0xFFFFAAFF, 0xFFFFAAFF };
- static Color_RGBA8_n D_809FFC48[] = { 0xFF64FFFF, 0x64FFFFFF };
- static u8 D_809FFC50[] = { 0x02010102, 0x00000201, 0x00020100, 0x02010002, 0x01000201, 0x00020100, 0x01020000};
- EnDyExtra* this = THIS;
- GraphicsContext* gfxCtx = globalCtx->state.gfxCtx;
- Gfx* dispRefs[4];
- Vtx* data;
- //Color_RGBA8_n* temp_v1_2;
- //Color_RGBA8_n* temp_v1_3;
- //u32 frames;
- s8 unk[3];
- u32 i;
- data = (Vtx*)SEGMENTED_TO_VIRTUAL(&D_0601BFB0);
- unk[0] = 0.0f;
- unk[1] = this->unk_158 * 240.0f;
- unk[2] = this->unk_158 * 255.0f;
- for (i = 0; i < 27; i++) {
- if (D_809FFC50[i]) {
- data[i].v.cn[3] = unk[D_809FFC50[i]];
- }
- }
- Graph_OpenDisps(dispRefs, gfxCtx, "../z_en_dy_extra.c", 0x126);
- func_80093D84(globalCtx->state.gfxCtx);
- //frames = globalCtx->state.frames
- gSPSegment(gfxCtx->polyXlu.p++, 0x08,
- Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, globalCtx->state.frames * 2, 0, 0x20, 0x40, 1, globalCtx->state.frames, globalCtx->state.frames * -8,
- 0x10, 0x10));
- gDPPipeSync(gfxCtx->polyXlu.p++);
- gSPMatrix(gfxCtx->polyXlu.p++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_en_dy_extra.c", 307),
- G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
- //temp_v1_2 = &D_809FFC40[this->unk_150];
- gDPSetPrimColor(gfxCtx->polyXlu.p++, 0, 0x80, D_809FFC40[this->unk_150].r, D_809FFC40[this->unk_150].g, D_809FFC40[this->unk_150].b, 255);
- //temp_v1_3 = &D_809FFC48[this->unk_150];
- gDPSetEnvColor(gfxCtx->polyXlu.p++, D_809FFC48[this->unk_150].r, D_809FFC48[this->unk_150].g, D_809FFC48[this->unk_150].b, 128);
- gSPDisplayList(gfxCtx->polyXlu.p++, D_0601C160);
- Graph_CloseDisps(dispRefs, gfxCtx, "../z_en_dy_extra.c", 325);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement