From 3de127d797a8183d4e2d68f9e8da0ba5d336cfd1 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Sun, 13 Jun 2021 19:06:41 -0400 Subject: Finish decomping unk_0201E7D8 --- include/unk_0201E7D8.h | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 include/unk_0201E7D8.h (limited to 'include') diff --git a/include/unk_0201E7D8.h b/include/unk_0201E7D8.h new file mode 100644 index 00000000..78b2c723 --- /dev/null +++ b/include/unk_0201E7D8.h @@ -0,0 +1,61 @@ +#ifndef POKEDIAMOND_UNK_0201E7D8_H +#define POKEDIAMOND_UNK_0201E7D8_H + +#include "fx.h" + + +struct CameraHistory +{ + s32 count; + s32 readIdx; + s32 writeIdx; + s32 writeIdxInit; + BOOL overrideEnabled; + BOOL enableUpdateX; + BOOL enableUpdateY; + BOOL enableUpdateZ; + VecFx32 * vecs; +}; + +struct CameraAngle +{ + u16 x; + u16 y; + u16 z; + u16 unk_06; +}; + +struct CameraPerspective +{ + fx32 fovySin; + fx32 fovyCos; + fx32 aspect; + fx32 n; + fx32 f; +}; + +struct CameraLookAt +{ + VecFx32 camPos; + VecFx32 camTarget; + VecFx32 camUp; +}; + +struct CameraWork +{ + struct CameraPerspective perspective; + struct CameraLookAt lookAt; + fx32 distance; + struct CameraAngle angle; + u8 perspectiveType; + u16 perspectiveAngle; + VecFx32 lastTarget; + const VecFx32 * currTarget_p; + BOOL enableOffsetX; + BOOL enableOffsetY; + BOOL enableOffsetZ; + struct CameraHistory * history; +}; + + +#endif //POKEDIAMOND_UNK_0201E7D8_H -- cgit v1.2.3 From 7e5c80f9b086a0e1df2430a0c0ed2f9eec3a5cb0 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Sun, 25 Jul 2021 14:49:32 -0400 Subject: Address review comments on #414 --- include/unk_0201E7D8.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/unk_0201E7D8.h b/include/unk_0201E7D8.h index 78b2c723..6c3f922d 100644 --- a/include/unk_0201E7D8.h +++ b/include/unk_0201E7D8.h @@ -22,7 +22,7 @@ struct CameraAngle u16 x; u16 y; u16 z; - u16 unk_06; + u16 unused; }; struct CameraPerspective @@ -30,8 +30,8 @@ struct CameraPerspective fx32 fovySin; fx32 fovyCos; fx32 aspect; - fx32 n; - fx32 f; + fx32 near; + fx32 far; }; struct CameraLookAt -- cgit v1.2.3