mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-06 14:20:11 +00:00
Global Context And General Cleanup (#863)
* door context * renames * done * fix unintended change * all nb gone * more nb gone * merge fishing * fix size commentX * door changes suggested by dragorn * fix accidental semicolon * another * change all texture pointers to void* * error fix and format * Update src/overlays/actors/ovl_En_Bom_Bowl_Man/z_en_bom_bowl_man.c Co-authored-by: Anghelo Carvajal <anghelo.carvajal.14@sansano.usm.cl> * fix ostime * correct mistake in SkyboxContext * probably fix nonmatching * Update include/z64.h Co-authored-by: Roman971 <32455037+Roman971@users.noreply.github.com> * roman's suggestions, fix incorrect type definition in z64scene.h * typo in struct * make typedef use u8 array * forgot one * pull in master and format.sh Co-authored-by: Anghelo Carvajal <anghelo.carvajal.14@sansano.usm.cl> Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> Co-authored-by: Roman971 <32455037+Roman971@users.noreply.github.com>
This commit is contained in:
parent
1890e751b9
commit
7551dc2b71
105 changed files with 496 additions and 508 deletions
|
@ -723,22 +723,11 @@ void ObjSwitch_DrawFloorRusty(ObjSwitch* this, GlobalContext* globalCtx) {
|
|||
Gfx_DrawDListOpa(globalCtx, gRustyFloorSwitchDL);
|
||||
}
|
||||
|
||||
static u64* sEyeTextures[][4] = {
|
||||
{
|
||||
gEyeSwitchGoldOpenTex,
|
||||
gEyeSwitchGoldOpeningTex,
|
||||
gEyeSwitchGoldClosingTex,
|
||||
gEyeSwitchGoldClosedTex,
|
||||
},
|
||||
{
|
||||
gEyeSwitchSilverOpenTex,
|
||||
gEyeSwitchSilverHalfTex,
|
||||
gEyeSwitchSilverClosedTex,
|
||||
gEyeSwitchSilverClosedTex,
|
||||
},
|
||||
};
|
||||
|
||||
void ObjSwitch_DrawEye(ObjSwitch* this, GlobalContext* globalCtx) {
|
||||
static void* eyeTextures[][4] = {
|
||||
{ gEyeSwitchGoldOpenTex, gEyeSwitchGoldOpeningTex, gEyeSwitchGoldClosingTex, gEyeSwitchGoldClosedTex },
|
||||
{ gEyeSwitchSilverOpenTex, gEyeSwitchSilverHalfTex, gEyeSwitchSilverClosedTex, gEyeSwitchSilverClosedTex },
|
||||
};
|
||||
static Gfx* eyeDlists[] = { gEyeSwitch1DL, gEyeSwitch2DL };
|
||||
s32 pad;
|
||||
s32 subType = (this->dyna.actor.params >> 4 & 7);
|
||||
|
@ -748,7 +737,7 @@ void ObjSwitch_DrawEye(ObjSwitch* this, GlobalContext* globalCtx) {
|
|||
func_80093D18(globalCtx->state.gfxCtx);
|
||||
gSPMatrix(POLY_OPA_DISP++, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_obj_switch.c", 1462),
|
||||
G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
|
||||
gSPSegment(POLY_OPA_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(sEyeTextures[subType][this->eyeTexIndex]));
|
||||
gSPSegment(POLY_OPA_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(eyeTextures[subType][this->eyeTexIndex]));
|
||||
gSPDisplayList(POLY_OPA_DISP++, eyeDlists[subType]);
|
||||
|
||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_obj_switch.c", 1471);
|
||||
|
|
|
@ -52,7 +52,7 @@ typedef struct ObjSwitch {
|
|||
/* 0x016C */ s16 cooldownTimer;
|
||||
/* 0x016E */ u8 cooldownOn;
|
||||
/* 0x0170 */ s16 eyeTexIndex;
|
||||
/* 0x0174 */ UNK_PTR crystalSubtype1texture;
|
||||
/* 0x0174 */ void* crystalSubtype1texture;
|
||||
/* 0x0178 */ u8 x1TexScroll;
|
||||
/* 0x0179 */ u8 y1TexScroll;
|
||||
/* 0x017A */ u8 x2TexScroll;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue