SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
Camera.cpp
1#include "Game/Camera/Camera.hpp"
2#include "Game/Camera/CameraHeightArrange.hpp"
3#include "Game/Camera/CameraMan.hpp"
4#include "Game/Camera/CameraParamChunk.hpp"
5#include "Game/Camera/CameraPoseParam.hpp"
6#include "Game/Util/SceneUtil.hpp"
7
8void CamTranslatorDummy::setParam(const CameraParamChunk *pChunk) {
9
10}
11
12Camera *CamTranslatorDummy::getCamera() const {
13 return mCamera;
14}
15
16Camera::Camera(const char *pName) : NameObj(pName) {
17 mPosParam = new CameraPoseParam();
18 mVPan = nullptr;
19 mIsLOfsErpOff = false;
20 mZoneMatrix.identity();
21}
22
23void Camera::reset() {
24
25}
26
27bool Camera::isInterpolationOff() const {
28 return false;
29}
30
31bool Camera::isCollisionOff() const {
32 return false;
33}
34
35bool Camera::isZeroFrameMoveOff() const {
36 return false;
37}
38
39bool Camera::isSubjectiveCameraOff() const {
40 return false;
41}
42
43bool Camera::isCorrectingErpPositionOff() const {
44 return false;
45}
46
47void Camera::roundLeft() {
48
49}
50
51void Camera::roundRight() {
52
53}
54
55bool Camera::isEnableToRoundLeft() const {
56 return false;
57}
58
59bool Camera::isEnableToRoundRight() const {
60 return false;
61}
62
63bool Camera::isEnableToReset() const {
64 return false;
65}
66
67CamTranslatorBase *Camera::createTranslator() {
68 return new CamTranslatorDummy(this);
69}
70
71#ifdef NON_MATCHING
72// mVPan is placed in r3 instead of r0 when comparing with nullptr
73void Camera::setZoneMtx(long zoneID) {
74 if (zoneID <= 0) {
75 mZoneMatrix.identity();
76 }
77 else {
78 mZoneMatrix.identity();
79
80 register TMtx34f *matrix = MR::getZonePlacementMtx(zoneID);
81 register Camera *camera = this;
82
83 __asm {
84 psq_l f0, 0x00(matrix), 0, 0
85 psq_l f1, 0x08(matrix), 0, 0
86 psq_l f2, 0x10(matrix), 0, 0
87 psq_l f3, 0x18(matrix), 0, 0
88 psq_l f4, 0x20(matrix), 0, 0
89 psq_l f5, 0x28(matrix), 0, 0
90 psq_st f0, 0x1C(camera), 0, 0
91 psq_st f1, 0x24(camera), 0, 0
92 psq_st f2, 0x2C(camera), 0, 0
93 psq_st f3, 0x34(camera), 0, 0
94 psq_st f4, 0x3C(camera), 0, 0
95 psq_st f5, 0x44(camera), 0, 0
96 };
97 }
98
99 if (mVPan != nullptr) {
100 pan->_60 = 1;
101 }
102}
103#endif
104
105void Camera::createVPanObj() {
106 mVPan = new CameraHeightArrange(this);
107}
The most basic form of an object.
Definition NameObj.hpp:11