Files
tp/include/f_op/f_op_camera_mng.h
T

100 lines
2.4 KiB
C++
Raw Normal View History

2021-04-09 01:22:16 +02:00
#ifndef F_F_OP_CAMERA_MNG_H_
#define F_F_OP_CAMERA_MNG_H_
2021-03-28 22:49:05 +02:00
2022-04-28 13:58:43 -07:00
#include "SSystem/SComponent/c_phase.h"
#include "d/d_camera.h"
2023-05-12 12:10:14 -07:00
#include "f_op/f_op_view.h"
typedef struct leafdraw_method_class leafdraw_method_class;
2021-03-28 22:49:05 +02:00
class camera_process_class : public view_class {
2021-04-09 01:22:16 +02:00
public:
2024-11-29 08:24:26 -08:00
/* 0x210 */ create_tag_class create_tag;
/* 0x224 */ leafdraw_method_class* submethod;
2022-04-28 13:58:43 -07:00
/* 0x228 */ u8 field_0x228[4];
2024-11-29 08:24:26 -08:00
/* 0x22C */ s8 prm1;
/* 0x22D */ s8 prm2;
/* 0x22E */ s8 prm3;
/* 0x22F */ s8 field_0x22f;
2024-11-29 08:24:26 -08:00
/* 0x230 */ csXyz angle;
2022-04-28 13:58:43 -07:00
/* 0x238 */ int field_0x238;
2021-04-09 01:22:16 +02:00
};
class camera_class : public camera_process_class {
public:
/* 0x23C */ int field_0x23c;
2024-11-29 08:24:26 -08:00
/* 0x240 */ request_of_phase_process_class phase_request;
/* 0x248 */ dCamera_c mCamera;
};
2024-06-25 07:34:59 -07:00
inline void fopCamM_SetNear(camera_class* i_this, f32 near) {
2024-11-29 08:24:26 -08:00
i_this->near = near;
2022-04-28 13:58:43 -07:00
}
2024-06-25 07:34:59 -07:00
inline void fopCamM_SetFar(camera_class* i_this, f32 far) {
2024-11-29 08:24:26 -08:00
i_this->far = far;
2022-04-28 13:58:43 -07:00
}
2024-06-25 07:34:59 -07:00
inline void fopCamM_SetFovy(camera_class* i_this, f32 fovy) {
2024-11-29 08:24:26 -08:00
i_this->fovy = fovy;
2022-04-28 13:58:43 -07:00
}
2024-06-25 07:34:59 -07:00
inline void fopCamM_SetAspect(camera_class* i_this, f32 aspect) {
2024-11-29 08:24:26 -08:00
i_this->aspect = aspect;
2022-04-28 13:58:43 -07:00
}
2024-06-25 07:34:59 -07:00
inline void fopCamM_SetEye(camera_class* i_this, f32 x, f32 y, f32 z) {
2024-11-29 08:24:26 -08:00
i_this->lookat.eye.set(x, y, z);
2022-04-28 13:58:43 -07:00
}
2024-06-25 07:34:59 -07:00
inline void fopCamM_SetCenter(camera_class* i_this, f32 x, f32 y, f32 z) {
2024-11-29 08:24:26 -08:00
i_this->lookat.center.set(x, y, z);
2022-04-28 13:58:43 -07:00
}
2024-06-25 07:34:59 -07:00
inline void fopCamM_SetBank(camera_class* i_this, s16 bank) {
2024-11-29 08:24:26 -08:00
i_this->bank = bank;
2024-06-25 07:34:59 -07:00
}
inline void fopCamM_SetPrm1(camera_class* i_this, int prm1) {
2024-11-29 08:24:26 -08:00
i_this->prm1 = prm1;
2024-06-25 07:34:59 -07:00
}
inline void fopCamM_SetPrm2(camera_class* i_this, int prm2) {
2024-11-29 08:24:26 -08:00
i_this->prm2 = prm2;
2024-06-25 07:34:59 -07:00
}
inline void fopCamM_SetPrm3(camera_class* i_this, int prm3) {
2024-11-29 08:24:26 -08:00
i_this->prm3 = prm3;
2024-06-25 07:34:59 -07:00
}
2022-04-28 13:58:43 -07:00
2024-05-07 21:21:07 -07:00
inline s16 fopCamM_GetAngleX(camera_class* i_camera) {
2024-11-29 08:24:26 -08:00
return i_camera->angle.x;
2024-05-07 21:21:07 -07:00
}
2023-03-07 10:44:25 -08:00
inline s16 fopCamM_GetAngleY(camera_class* i_camera) {
2024-11-29 08:24:26 -08:00
return i_camera->angle.y;
2023-03-07 10:44:25 -08:00
}
2024-05-07 21:21:07 -07:00
inline s16 fopCamM_GetAngleZ(camera_class* i_camera) {
2024-11-29 08:24:26 -08:00
return i_camera->angle.z;
2024-05-07 21:21:07 -07:00
}
2023-07-07 18:06:12 +03:00
inline f32 fopCamM_GetFovy(camera_class* i_camera) {
2024-11-29 08:24:26 -08:00
return i_camera->fovy;
2023-07-07 18:06:12 +03:00
}
2024-01-18 01:19:10 +02:00
inline cXyz* fopCamM_GetEye_p(camera_class* i_camera) {
2024-11-29 08:24:26 -08:00
return &i_camera->lookat.eye;
2024-01-18 01:19:10 +02:00
}
2024-01-22 22:24:24 +02:00
inline cXyz* fopCamM_GetCenter_p(camera_class* i_camera) {
2024-11-29 08:24:26 -08:00
return &i_camera->lookat.center;
2024-01-22 22:24:24 +02:00
}
2024-11-29 08:24:26 -08:00
fpc_ProcID fopCamM_Create(int i_cameraIdx, s16 i_procName, void* i_append);
void fopCamM_Management();
u32 fopCamM_GetParam(camera_class* i_this);
void fopCamM_Init();
2021-04-09 01:22:16 +02:00
2024-10-23 19:25:13 -04:00
#endif