docs and such (#137)

This commit is contained in:
petrie911
2024-02-19 10:05:11 -03:00
committed by GitHub
parent 41698a131a
commit f227194d24
37 changed files with 1765 additions and 1609 deletions
+6 -6
View File
@@ -29,12 +29,12 @@ extern f32 gGroundLevel;
extern f32 D_80177950;
extern f32 D_80177968;
extern f32 D_80177970;
extern f32 D_80177978;
extern f32 D_80177980;
extern f32 D_80177988;
extern f32 D_801779A0;
extern f32 D_801779B8;
extern f32 D_801779C0;
extern f32 gCsCamEyeX;
extern f32 gCsCamEyeY;
extern f32 gCsCamEyeZ;
extern f32 gCsCamAtX;
extern f32 gCsCamAtY;
extern f32 gCsCamAtZ;
extern Vec3f D_801779D8;
extern Vec3f D_801779E8;
extern bool gExpertMode;
+36 -16
View File
@@ -11,36 +11,56 @@ typedef struct {
/* 0xC */ f32 scale;
} ObjPosition;
typedef enum {
/* 0 */ PL_PATH_BLU,
/* 1 */ PL_PATH_YLW,
/* 2 */ PL_PATH_RED,
/* 3 */ PL_WARP_YLW,
/* 4 */ PL_WARP_RED,
} PathType;
typedef struct {
/* 0x00 */ s32 unk_00;
/* 0x04 */ PlanetId unk_04;
/* 0x08 */ PlanetId unk_08;
/* 0x0C */ s32 unk_0C;
/* 0x00 */ PathType type;
/* 0x04 */ PlanetId start;
/* 0x08 */ PlanetId end;
/* 0x0C */ s32 length;
/* 0x10 */ char pad10[0x4];
/* 0x14 */ s32 unk_14;
/* 0x18 */ s32 unk_18;
} UnkStruct_D_menu_801AFD18; // size = 0x1C
/* 0x18 */ s32 alpha;
} PlanetPath; // size = 0x1C
typedef enum {
/* 0 */ PL_ANIM_STATIC,
/* 1 */ PL_ANIM_BILLBOARD,
/* 2 */ PL_ANIM_ROTATE_Y,
/* 3 */ PL_ANIM_ROTATE_Z,
/* 4 */ PL_ANIM_SPIN,
} PlanetAnim;
typedef struct {
/* 0x0 */ f32 radius;
/* 0x4 */ f32 incl;
/* 0x8 */ f32 tilt;
} OrbitParams;
typedef struct {
/* 0x00 */ PlanetId id;
/* 0x04 */ f32 unk_04;
/* 0x08 */ f32 unk_08;
/* 0x0C */ f32 zAngle;
/* 0x04 */ OrbitParams orbit;
/* 0x10 */ Vec3f pos;
/* 0x1C */ f32 unk_1C;
/* 0x1C */ f32 longitude;
/* 0x20 */ f32 scale;
/* 0x24 */ s32 alpha;
/* 0x28 */ s32 unk_28;
/* 0x2C */ PlanetId unk_2C;
/* 0x30 */ PlanetId unk_30;
/* 0x34 */ PlanetId unk_34;
/* 0x28 */ PlanetAnim anim;
/* 0x2C */ PlanetId dest1;
/* 0x30 */ PlanetId dest2;
/* 0x34 */ PlanetId warp;
} Planet; // size = 0x38
typedef struct {
/* 0x0 */ u8* addr;
/* 0x0 */ u8* texture;
/* 0x4 */ s32 width;
/* 0x8 */ s32 height;
/* 0xC */ f32 xPos;
} Texture; // size = 0x10
} TitleCard; // size = 0x10
#endif
+1
View File
@@ -23,6 +23,7 @@
#define SIGN_OF(x) (((x) > 0) ? 1 : ((x) == 0) ? 0 : -1)
#define SQ(x) ((x) * (x))
#define CUBE(x) ((x) * (x) * (x))
#define VEC3F_SQ(vec) (SQ((vec).x) + SQ((vec).y) + SQ((vec).z))
#define DOT_XYZ(a, b) ((a).x * (b).x + (a).y * (b).y + (a).z * (b).z)
#define ABS(x) ((x) >= 0 ? (x) : -(x))
+3 -7
View File
@@ -42,13 +42,9 @@ typedef struct {
#define BONUS_TEXT_1UP 101
typedef struct {
/* 0x00 */ f32 unk_00;
/* 0x04 */ f32 unk_04;
/* 0x08 */ f32 unk_08;
/* 0x0C */ f32 unk_0C;
/* 0x10 */ f32 unk_10;
/* 0x14 */ f32 unk_14;
} UnkStruct_D_menu_801B8294; // size = 0x18
/* 0x00 */ Vec3f eye;
/* 0x0C */ Vec3f at;
} CameraPoint; // size = 0x18
typedef struct {
/* 0x00 */ f32 unk_00;