mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-07 14:50:15 +00:00
Replace unnecessary Vtx_t uses by Vtx (#228)
This commit is contained in:
parent
27d059b041
commit
b55fc9a4e0
2 changed files with 161 additions and 161 deletions
|
@ -152,11 +152,11 @@ void OceffStorm_Draw(Actor* thisx, GlobalContext* globalCtx) {
|
|||
u32 scroll;
|
||||
OceffStorm* this;
|
||||
GraphicsContext* gfxCtx;
|
||||
Vtx_t* vtxPtr;
|
||||
Vtx* vtxPtr;
|
||||
Gfx* dispRefs[4];
|
||||
|
||||
this = THIS;
|
||||
vtxPtr = (Vtx_t*)vertices;
|
||||
vtxPtr = vertices;
|
||||
scroll = globalCtx->state.frames & 0xFFF;
|
||||
gfxCtx = globalCtx->state.gfxCtx;
|
||||
Graph_OpenDisps(dispRefs, globalCtx->state.gfxCtx, "../z_oceff_storm.c", 486);
|
||||
|
@ -168,8 +168,8 @@ void OceffStorm_Draw(Actor* thisx, GlobalContext* globalCtx) {
|
|||
gDPSetAlphaDither(gfxCtx->polyXlu.p++, G_AD_NOISE);
|
||||
gDPSetColorDither(gfxCtx->polyXlu.p++, G_CD_NOISE);
|
||||
|
||||
vtxPtr[0].cn[3] = vtxPtr[6].cn[3] = vtxPtr[16].cn[3] = vtxPtr[25].cn[3] = this->vtxAlpha >> 1;
|
||||
vtxPtr[10].cn[3] = vtxPtr[22].cn[3] = this->vtxAlpha;
|
||||
vtxPtr[0].v.cn[3] = vtxPtr[6].v.cn[3] = vtxPtr[16].v.cn[3] = vtxPtr[25].v.cn[3] = this->vtxAlpha >> 1;
|
||||
vtxPtr[10].v.cn[3] = vtxPtr[22].v.cn[3] = this->vtxAlpha;
|
||||
|
||||
gSPMatrix(gfxCtx->polyXlu.p++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_oceff_storm.c", 498),
|
||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue