diff options
| author | Tyler McGavran <tyler.taggerung@gmail.com> | 2022-07-06 20:36:27 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-06 17:36:27 -0700 |
| commit | f2eef3b82ee60cd3f1f6b44c035fcb65637fe54d (patch) | |
| tree | 370ddc5935c90b1f8fd0d791cd93ae44b6257668 /include | |
| parent | bf106ede73cc78538d98877e40ba73d5a45c5351 (diff) | |
Identify some stuff in the Camera struct (#238)
Make a header file for all the camera stuff, refresh a lot of
mips_to_c output
Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/common_structs.h | 84 | ||||
| -rw-r--r-- | include/types.h | 1 | ||||
| -rw-r--r-- | include/variables.h | 5 |
3 files changed, 15 insertions, 75 deletions
diff --git a/include/common_structs.h b/include/common_structs.h index 09c59156d..534c0f4cd 100644 --- a/include/common_structs.h +++ b/include/common_structs.h @@ -97,58 +97,20 @@ typedef struct { // 80160ADC Banana's remaining typedef struct { - // B4 long - Vec3f pos; - //f32 posY; - //f32 posZ; - f32 unk; // lookat? faceangle? - f32 unk1; - f32 unk2; - f32 angleX; - f32 angleY; - f32 angleZ; - Vec3s rotX; - s16 rotZ; - s32 unk3; // zero - s32 unk4; // 0x4119999A - s32 unk5; // 0xC20C bit flag? - s32 unk6; // 0 - s32 unk7; // 0 - s32 unk8; // 0x41F - s32 unk9; // 0 - s32 unk10; // 0 - s32 unk11; // 0 - s32 unk12; // 0 - u16 unk13; // 0x103F7 - u16 unk13_and_a_half; - u16 unk14; // 0x05BC00## Surface camera is over? - u16 unk14_half; - f32 collisionX; - f32 collisionY; - f32 collisionZ; - f32 unk15; - f32 unk16; - f32 unk17; - f32 unk18; - f32 unk19; - f32 unk20; - f32 unkAngleX; - f32 unkAngleY; - f32 unkAngleZ; - s32 unk21; // zero - f32 collision; - f32 unk22; // zero - s16 unk23; // confirmed s16 - s16 unk24; // zero - s16 unk24_and_a_half; - s32 unk25; // zero - s32 unk26; // zero - // need another s16 here? - s32 unk27; // 8 - s16 unk28; // zero - f32 unk29; // 422 - f32 unk30; -} Camera; + /* 0x00 */ u16 unk30; + /* 0x02 */ u16 unk32; + /* 0x04 */ u16 unk34; + /* 0x06 */ u16 unk36; + /* 0x08 */ u16 unk38; + /* 0x0A */ u16 unk3A; + /* 0x0C */ f32 unk3C; + /* 0x10 */ f32 unk40; + /* 0x14 */ f32 unk44; + /* 0x18 */ Vec3f unk48; + /* 0x24 */ Vec3f unk54; + /* 0x30 */ Vec3f unk60; + /* 0x3C */ f32 unk6C; +} UnkActorInner; typedef struct { /* 0x00 */ Vec3f unk_000; @@ -248,24 +210,6 @@ typedef struct { #define BACK_LEFT_TYRE 2 #define BACK_RIGHT_TYRE 3 - -typedef struct { - /* 0x00 */ u16 unk30; - /* 0x02 */ u16 unk32; - /* 0x04 */ u16 unk34; - /* 0x06 */ u16 unk36; - /* 0x08 */ u16 unk38; - /* 0x0A */ u16 unk3A; - /* 0x0C */ f32 unk3C; - /* 0x10 */ f32 unk40; - /* 0x14 */ f32 unk44; - /* 0x18 */ Vec3f unk48; - /* 0x24 */ Vec3f unk54; - /* 0x30 */ Vec3f unk60; - /* 0x3C */ f32 unk6C; -} UnkActorInner; - - typedef struct { /* 0x0000 */ u16 unk_000; /* 0x0002 */ u16 unk_002; diff --git a/include/types.h b/include/types.h index 46e980e30..6ed9196a7 100644 --- a/include/types.h +++ b/include/types.h @@ -3,6 +3,7 @@ #include <ultra64.h> #include <common_structs.h> +#include "camera.h" typedef f32 Mat4[4][4]; typedef f32 Mat3[3][3]; diff --git a/include/variables.h b/include/variables.h index 329a95923..7210c8a60 100644 --- a/include/variables.h +++ b/include/variables.h @@ -72,11 +72,6 @@ extern char *gSoundModeNames[NUM_SOUND_MODES]; // D_800E7710 extern f32 gTimePlayerLastTouchedFinishLine[8]; // D_8015F898 extern s8 gTimeTrialDataCourseIndex; // D_8018EDF7 -extern Camera *camera1; -extern Camera *camera2; -extern Camera *camera3; -extern Camera *camera4; - extern Player gPlayers[8]; extern Player* gPlayerOne; extern Player* gPlayerTwo; |
