SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
CameraContext.cpp
1#include "Game/Camera/CameraContext.hpp"
2
3CameraContext::CameraContext() : NameObj("カメラコンテキスト") {
4 initParams();
5}
6
7CameraContext::~CameraContext() {
8
9}
10
11const TPos3f *CameraContext::getViewMtx() const {
12 return &mView;
13}
14
15const TPos3f *CameraContext::getInvViewMtx() const {
16 return &mViewInv;
17}
18
19void CameraContext::setNearZ(float near) {
20 mNearZ = near;
21 updateProjectionMtx();
22}
23
24void CameraContext::setFovy(float fovy) {
25 mFovy = fovy;
26 updateProjectionMtx();
27}
28
29void CameraContext::setShakeOffset(float x, float y) {
30 mShakeOffsetX = x;
31 mShakeOffsetY = y;
32
33 updateProjectionMtx();
34}
The most basic form of an object.
Definition NameObj.hpp:11