Advertisement
fggkyle

Untitled

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