mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-11 17:30:25 +00:00
Match a bunch of overlay draw functions (#2034)
* Match a bunch of actor draw functions * Change z_demo_gt.c draw functions to take Actor* thisx
This commit is contained in:
parent
e6bc4bd8cb
commit
755604d5ff
23 changed files with 131 additions and 149 deletions
|
@ -51,23 +51,19 @@ u32 EffectSsIceSmoke_Init(PlayState* play, u32 index, EffectSs* this, void* init
|
|||
}
|
||||
|
||||
void EffectSsIceSmoke_Draw(PlayState* play, u32 index, EffectSs* this) {
|
||||
s32 pad;
|
||||
PlayState* play2 = (PlayState*)play;
|
||||
void* objectPtr;
|
||||
Mtx* mtx;
|
||||
f32 scale;
|
||||
s32 objectSlot;
|
||||
|
||||
objectPtr = play->objectCtx.slots[this->rObjectSlot].segment;
|
||||
objectPtr = play2->objectCtx.slots[this->rObjectSlot].segment;
|
||||
|
||||
OPEN_DISPS(play->state.gfxCtx, "../z_eff_ss_ice_smoke.c", 155);
|
||||
|
||||
#if !OOT_DEBUG
|
||||
if (1) {}
|
||||
#endif
|
||||
objectSlot = Object_GetSlot(&play2->objectCtx, OBJECT_FZ);
|
||||
|
||||
objectSlot = Object_GetSlot(&play->objectCtx, OBJECT_FZ);
|
||||
|
||||
if ((objectSlot >= 0) && Object_IsLoaded(&play->objectCtx, objectSlot)) {
|
||||
if ((objectSlot >= 0) && Object_IsLoaded(&play2->objectCtx, objectSlot)) {
|
||||
gDPPipeSync(POLY_XLU_DISP++);
|
||||
Gfx_SetupDL_25Xlu(play->state.gfxCtx);
|
||||
gSegments[6] = VIRTUAL_TO_PHYSICAL(objectPtr);
|
||||
|
@ -79,13 +75,14 @@ void EffectSsIceSmoke_Draw(PlayState* play, u32 index, EffectSs* this) {
|
|||
Gfx_TwoTexScroll(play->state.gfxCtx, G_TX_RENDERTILE, this->life * 3, this->life * 15, 32, 64, 1, 0,
|
||||
0, 32, 32));
|
||||
Matrix_Translate(this->pos.x, this->pos.y, this->pos.z, MTXMODE_NEW);
|
||||
Matrix_ReplaceRotation(&play->billboardMtxF);
|
||||
Matrix_ReplaceRotation(&play2->billboardMtxF);
|
||||
scale = this->rScale * 0.0001f;
|
||||
Matrix_Scale(scale, scale, 1.0f, MTXMODE_APPLY);
|
||||
|
||||
mtx = MATRIX_NEW(play->state.gfxCtx, "../z_eff_ss_ice_smoke.c", 196);
|
||||
|
||||
if (mtx != NULL) {
|
||||
if (1) {}
|
||||
gSPMatrix(POLY_XLU_DISP++, mtx, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
gSPDisplayList(POLY_XLU_DISP++, SEGMENTED_TO_VIRTUAL(gFreezardSteamDL));
|
||||
}
|
||||
|
|
|
@ -62,7 +62,6 @@ void EffectSsStone1_Draw(PlayState* play, u32 index, EffectSs* this) {
|
|||
scale = (mfW < 1500.0f) ? 3.0f : (mfW / 1500.0f) * 3.0f;
|
||||
Matrix_Translate(this->pos.x, this->pos.y, this->pos.z, MTXMODE_NEW);
|
||||
Matrix_Scale(scale, scale, scale, MTXMODE_APPLY);
|
||||
if (1) {}
|
||||
gSPMatrix(POLY_XLU_DISP++, MATRIX_NEW(gfxCtx, "../z_eff_ss_stone1.c", 168),
|
||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
Gfx_SetupDL_61Xlu(gfxCtx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue