New matches in d_camera_c (#2498)

* dCamera_c::blureCamera matching

* store progress

* camera store matching (regalloc)

* setEventRecoveryTrans matching

* matched currentEvCamera and runEventRecoveryTrans

* Fix
This commit is contained in:
Łukasz Starzyk
2025-06-24 21:51:18 +03:00
committed by GitHub
parent 384558830a
commit 6ae7bb47dc
4 changed files with 206 additions and 18 deletions
+16
View File
@@ -31,6 +31,14 @@ public:
/* 0x248 */ dCamera_c mCamera;
};
inline void fopCamM_SetAngleX(camera_class* i_camera, s16 angle) {
i_camera->angle.x = angle;
}
inline void fopCamM_SetAngleY(camera_class* i_camera, s16 angle) {
i_camera->angle.y = angle;
}
inline void fopCamM_SetNear(camera_class* i_this, f32 near) {
i_this->near = near;
}
@@ -55,6 +63,10 @@ inline void fopCamM_SetCenter(camera_class* i_this, f32 x, f32 y, f32 z) {
i_this->lookat.center.set(x, y, z);
}
inline void fopCamM_SetUp(camera_class* i_this, f32 x, f32 y, f32 z) {
i_this->lookat.up.set(x, y, z);
}
inline void fopCamM_SetBank(camera_class* i_this, s16 bank) {
i_this->bank = bank;
}
@@ -95,6 +107,10 @@ inline cXyz* fopCamM_GetCenter_p(camera_class* i_camera) {
return &i_camera->lookat.center;
}
inline cXyz* fopCamM_GetUp_p(camera_class* i_camera) {
return &i_camera->lookat.up;
}
inline s16 fopCamM_GetBank(camera_class* i_camera) {
return i_camera->bank;
}