Advertisement
fggkyle

Untitled

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