SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
CameraRegisterHolder.hpp
1#pragma once
2
3#include "Game/NameObj/NameObj.hpp"
4#include "JSystem/JGeometry/TMatrix.hpp"
5#include "JSystem/JGeometry/TVec.hpp"
6
7#define NR_REGISTERS 0x40
8
10public:
11 CameraRegisterHolder(const char *);
12
13 void declareMtxReg(const char *, MtxPtr);
14 MtxPtr getMtx(const char *) const;
15
16 void declareVecReg(const char *, const TVec3f *);
17 const TVec3f *getVec(const char *) const;
18 void declareFloatReg(const char *, const float *);
19 const char *getDummyVecRegName() const;
20
21 void initMtx();
22 void initVec();
23 void initFloat();
24 void initDummyRegister();
25
26 s32 searchName(const char *const *, unsigned long, const char *) const;
27
28 u32 mNrMatrices; // _C
29 MtxPtr mMatrices[NR_REGISTERS]; // _10
30 const char *mMatrixNames[NR_REGISTERS]; // _110
31 u32 mNrVectors; // _210
32 const TVec3f *mVectors[NR_REGISTERS]; // _214
33 const char *mVectorNames[NR_REGISTERS]; // _314
34 u32 mNrFloats; // _414
35 const float *mFloats[NR_REGISTERS]; // _418
36 const char *mFloatNames[NR_REGISTERS]; // _518
37 TMtx34f mDummyMatrix; // _618
38 TVec3f mDummyVector; // _648
39 f32 mDummyFloat; // _654
40};
The most basic form of an object.
Definition NameObj.hpp:11