Advertisement
fggkyle

Untitled

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