@@ -10,8 +10,9 @@ struct fopCamM_prm_class {
1010 /* 0x00 */ fopAcM_prmBase_class base;
1111}; // Size: 0x18
1212
13- class camera_class : public view_class {
13+ class camera_class {
1414public:
15+ /* 0x000 */ view_class view;
1516 /* 0x210 */ create_tag_class create_tag;
1617 /* 0x224 */ leafdraw_method_class* submethod;
1718 /* 0x228 */ u8 field_0x228[4 ];
@@ -39,35 +40,35 @@ inline void fopCamM_SetAngleY(camera_class* i_camera, s16 angle) {
3940}
4041
4142inline void fopCamM_SetNear (camera_class* i_this, f32 near) {
42- i_this->near = near;
43+ i_this->view . near = near;
4344}
4445
4546inline void fopCamM_SetFar (camera_class* i_this, f32 far) {
46- i_this->far = far;
47+ i_this->view . far = far;
4748}
4849
4950inline void fopCamM_SetFovy (camera_class* i_this, f32 fovy) {
50- i_this->fovy = fovy;
51+ i_this->view . fovy = fovy;
5152}
5253
5354inline void fopCamM_SetAspect (camera_class* i_this, f32 aspect) {
54- i_this->aspect = aspect;
55+ i_this->view . aspect = aspect;
5556}
5657
5758inline void fopCamM_SetEye (camera_class* i_this, f32 x, f32 y, f32 z) {
58- i_this->lookat .eye .set (x, y, z);
59+ i_this->view . lookat .eye .set (x, y, z);
5960}
6061
6162inline void fopCamM_SetCenter (camera_class* i_this, f32 x, f32 y, f32 z) {
62- i_this->lookat .center .set (x, y, z);
63+ i_this->view . lookat .center .set (x, y, z);
6364}
6465
6566inline void fopCamM_SetUp (camera_class* i_this, f32 x, f32 y, f32 z) {
66- i_this->lookat .up .set (x, y, z);
67+ i_this->view . lookat .up .set (x, y, z);
6768}
6869
6970inline void fopCamM_SetBank (camera_class* i_this, s16 bank) {
70- i_this->bank = bank;
71+ i_this->view . bank = bank;
7172}
7273
7374inline void fopCamM_SetPrm1 (camera_class* i_this, int prm1) {
@@ -95,23 +96,23 @@ inline s16 fopCamM_GetAngleZ(camera_class* i_camera) {
9596}
9697
9798inline f32 fopCamM_GetFovy (camera_class* i_camera) {
98- return i_camera->fovy ;
99+ return i_camera->view . fovy ;
99100}
100101
101102inline cXyz* fopCamM_GetEye_p (camera_class* i_camera) {
102- return &i_camera->lookat .eye ;
103+ return &i_camera->view . lookat .eye ;
103104}
104105
105106inline cXyz* fopCamM_GetCenter_p (camera_class* i_camera) {
106- return &i_camera->lookat .center ;
107+ return &i_camera->view . lookat .center ;
107108}
108109
109110inline cXyz* fopCamM_GetUp_p (camera_class* i_camera) {
110- return &i_camera->lookat .up ;
111+ return &i_camera->view . lookat .up ;
111112}
112113
113114inline s16 fopCamM_GetBank (camera_class* i_camera) {
114- return i_camera->bank ;
115+ return i_camera->view . bank ;
115116}
116117
117118fpc_ProcID fopCamM_Create (int i_cameraIdx, s16 i_procName, void * i_append);
0 commit comments