SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
CameraUtil.hpp
1#pragma once
2
3#include <revolution.h>
4#include "JSystem/JGeometry.hpp"
5
6class LiveActor;
9class NameObj;
10
11namespace MR {
12 TVec3f getCamPos();
13
14 f32 calcCameraDistanceZ(const TVec3f &);
15
16 bool isCameraInterpolateNearlyEnd();
17
18 void setShakeOffset(float, float);
19
20 void cleanEventCameraTarget_temporally();
21
22 const MtxPtr getCameraViewMtx();
23 TPos3f *getCameraInvViewMtx();
24
25 void loadProjectionMtx();
26
27 void startEventCamera(const ActorCameraInfo *, const char *, const CameraTargetArg &, long);
28
29 f32 getAspect();
30 f32 getNearZ();
31 f32 getFarZ();
32 f32 getFovy();
33 void setCameraViewMtx(const TPos3f &, bool, bool, const TVec3f &);
34 void setNearZ(f32);
35 void setFovy(f32);
36 void setShakeOffset(f32, f32);
37 TVec3f getCamXDir();
38 TVec3f getCamYDir();
39 TVec3f getCamZDir();
40 void createMirrorCamera();
41 bool isExistMirrorCamera();
42
43 void completeCameraParameters();
44 void resetCameraMan();
45 void startCameraInterpolation(u32);
46 void declareEventCamera(const ActorCameraInfo *, const char *);
47 void endEventCamera(const ActorCameraInfo *,const char *, bool, long);
48 void declareGlobalEventCameraAbyss(const char *);
49 void declareGlobalEventCameraFixedThere(const char *, bool, f32);
50 void declareGlobalEventCameraDead(const char *, f32, s32, s32);
51 void declareEventCameraAnim(const ActorCameraInfo *, const char *, void *);
52 void declareBlackHoleCamera(const char *);
53 void declareGlobalEventCamera(const char *);
54 void declareEventCameraProgrammable(const char *);
55 void setGameCameraTargetToPlayer();
56
57 void calcScreenPosition(TVec2f *, const TVec3f &);
58
59 bool calcScreenPosition(TVec3f *, const TVec3f &);
60
61 void declareEventCameraAnim(const ActorCameraInfo *, const char *, void *);
62
63 bool createActorCameraInfoIfExist(const JMapInfoIter &, ActorCameraInfo **);
64 void endActorCamera(const LiveActor *, const ActorCameraInfo *, bool, s32);
65
66 bool isStartAnimCameraEnd();
67
68 void overlayWithPreviousScreen(u32);
69
70 void resetCamerLocalOffset();
71
72 void drawInitFor2DModel();
73
74 void declareCameraRegisterVec(const NameObj *, u32, TVec3f *);
75
76 bool hasStartAnimCamera();
77
78 void endStartAnimCamera();
79
80 void pauseOffCameraDirector();
81
82 void calcScreenPosition(TVec2f *, const TVec3f &);
83
84 bool isCameraInWater();
85};
The basis of a drawable actor that can contain states (see: Nerve)
Definition LiveActor.hpp:24
The most basic form of an object.
Definition NameObj.hpp:11