Advertisement
fggkyle

Untitled

Aug 24th, 2020 (edited)
2,176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.54 KB | None | 0 0
  1. void EnDyExtra_Draw(Actor* thisx, GlobalContext* globalCtx) {
  2.     EnDyExtra* this = THIS;
  3.  
  4.     GraphicsContext* gfxCtx;
  5.     Gfx* dispRefs[4];
  6.     Color_RGBA8_n* temp_v1_2;
  7.     Color_RGBA8_n* temp_v1_3;
  8.     Vtx* data;
  9.     s8 unk[3];
  10.  
  11.     u32 frames;
  12.     u32 i;
  13.  
  14.     data = (Vtx*)SEGMENTED_TO_VIRTUAL(&D_0601BFB0);
  15.     gfxCtx = globalCtx->state.gfxCtx;
  16.  
  17.     unk[0] = 0.0f;
  18.     unk[1] = this->unk_158 * 240.0f;
  19.     unk[2] = this->unk_158 * 255.0f;
  20.  
  21.     for (i = 0; i < 27; i++) {
  22.         if (D_809FFC50[i]) {
  23.             (data + i)->v.cn[3] = unk[D_809FFC50[i]];
  24.         }
  25.     }
  26.     Graph_OpenDisps(dispRefs, gfxCtx, "../z_en_dy_extra.c", 294);
  27.     func_80093D84(globalCtx->state.gfxCtx);
  28.  
  29.     frames = globalCtx->state.frames;
  30.     gSPSegment(gfxCtx->polyXlu.p++, 0x08,
  31.                Gfx_TwoTexScroll(globalCtx->state.gfxCtx, 0, frames * 2, 0, 0x20, 0x40, 1, frames, (0 - frames) * 8,
  32.                                 0x10, 0x10));
  33.  
  34.     gDPPipeSync(gfxCtx->polyXlu.p++);
  35.     gSPMatrix(gfxCtx->polyXlu.p++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_en_dy_extra.c", 307),
  36.               G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
  37.  
  38.     temp_v1_2 = &D_809FFC40[this->unk_150];
  39.     gDPSetPrimColor(gfxCtx->polyXlu.p++, 0, 0x80, temp_v1_2->r, temp_v1_2->g, temp_v1_2->b, 255);
  40.  
  41.     temp_v1_3 = &D_809FFC48[this->unk_150];
  42.     gDPSetEnvColor(gfxCtx->polyXlu.p++, temp_v1_3->r, temp_v1_3->g, temp_v1_3->b, 128);
  43.  
  44.     gSPDisplayList(gfxCtx->polyXlu.p++, D_0601C160);
  45.     Graph_CloseDisps(dispRefs, gfxCtx, "../z_en_dy_extra.c", 325);
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement