mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-11-26 23:00:30 +00:00
SCamera
This commit is contained in:
parent
30a3189e16
commit
9d3880c81b
13
camera.cpp
13
camera.cpp
@ -453,3 +453,16 @@ void validate_CCamera(void){
|
||||
VALIDATE(CCamera, field_2E8, 0x2E8);
|
||||
|
||||
}
|
||||
|
||||
void validate_SCamera(void)
|
||||
{
|
||||
VALIDATE_SIZE(SCamera, 0x54);
|
||||
|
||||
VALIDATE(SCamera, Style, 0x0);
|
||||
VALIDATE(SCamera, Position, 0x4);
|
||||
VALIDATE(SCamera, Focus, 0x14);
|
||||
VALIDATE(SCamera, Distance, 0x24);
|
||||
VALIDATE(SCamera, Height, 0x28);
|
||||
VALIDATE(SCamera, Angles, 0x2C);
|
||||
VALIDATE(SCamera, Transform, 0x34);
|
||||
}
|
||||
|
12
camera.h
12
camera.h
@ -9,6 +9,17 @@
|
||||
|
||||
static int * const gCameraRelated = (int*)0x56F254;
|
||||
|
||||
struct SCamera
|
||||
{
|
||||
u32 Style;
|
||||
VECTOR Position;
|
||||
VECTOR Focus;
|
||||
i32 Distance;
|
||||
i32 Height;
|
||||
SVECTOR Angles;
|
||||
MATRIX Transform;
|
||||
};
|
||||
|
||||
enum ECameraMode {
|
||||
ECam_mode_0x10 = 0x10,
|
||||
ECam_mode_0x11 = 0x11,
|
||||
@ -185,5 +196,6 @@ public:
|
||||
EXPORT __int16 CalcTheta(__int16, __int16);
|
||||
|
||||
void validate_CCamera(void);
|
||||
void validate_SCamera(void);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user