Mario Kart 64
Loading...
Searching...
No Matches
TourCamera Class Reference

#include <TourCamera.h>

Inheritance diagram for TourCamera:
[legend]
Collaboration diagram for TourCamera:
[legend]

Data Structures

struct  CameraShot
 
struct  KeyFrame
 

Public Types

enum class  TOUR_TYPE { SEQUENTIAL = 0 , RANDOM , LOOP }
 
- Public Types inherited from GameCamera
enum class  ProjectionMode { PERSPECTIVE , ORTHOGRAPHIC }
 

Public Member Functions

 TourCamera (FVector pos, s16 rot, u32 mode)
 
virtual void Tick () override
 
virtual void SetViewProjection () override
 
void NextShot ()
 
void Reset ()
 
void Stop ()
 
bool IsTourComplete ()
 
bool MoveCameraAlongSpline (f32 *arg1, std::vector< KeyFrame > &keyFrame)
 
void Draw ()
 
- Public Member Functions inherited from GameCamera
 GameCamera ()
 
 GameCamera (FVector spawn, s16 rot, u32 mode)
 
 ~GameCamera ()
 
virtual void SetActive (bool state)
 
void SetProjectionMode (GameCamera::ProjectionMode mode)
 
bool IsActive ()
 
CameraGet ()
 
Mtx * GetPerspMatrix ()
 
Mtx * GetLookAtMatrix ()
 

Data Fields

TOUR_TYPE Type
 
size_t ShotIndex
 
size_t KeyFrameIndex
 
f32 KeyFrameProgress
 
bool bShotComplete
 
bool bTourComplete
 
bool bActivateAudio
 
uint8_t Alpha
 
- Data Fields inherited from GameCamera
ProjectionMode ProjMode
 

Additional Inherited Members

- Protected Attributes inherited from GameCamera
Mtx PerspectiveMatrix
 
Mtx LookAtMatrix
 
bool bActive
 
Camera_camera
 
- Static Protected Attributes inherited from GameCamera
static size_t _count = 0
 

Detailed Description

Tour: A cutscene camera system to provide an overview of the track. How this works:

A tour consists of a series of camera shots. A shot consists of a series of keyframes. The camera is smoothly translated between keyframes using a cubic spline algorithm.

Member Enumeration Documentation

◆ TOUR_TYPE

enum class TourCamera::TOUR_TYPE
strong
Enumerator
SEQUENTIAL 
RANDOM 
LOOP 

Constructor & Destructor Documentation

◆ TourCamera()

TourCamera::TourCamera ( FVector pos,
s16 rot,
u32 mode )
Here is the call graph for this function:

Member Function Documentation

◆ Draw()

void TourCamera::Draw ( )
Here is the call graph for this function:

◆ IsTourComplete()

bool TourCamera::IsTourComplete ( )

◆ MoveCameraAlongSpline()

bool TourCamera::MoveCameraAlongSpline ( f32 * arg1,
std::vector< KeyFrame > & keyFrame )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ NextShot()

void TourCamera::NextShot ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Reset()

void TourCamera::Reset ( )
Here is the caller graph for this function:

◆ SetViewProjection()

void TourCamera::SetViewProjection ( )
overridevirtual

Reimplemented from GameCamera.

Here is the call graph for this function:

◆ Stop()

void TourCamera::Stop ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Tick()

void TourCamera::Tick ( )
overridevirtual

Reimplemented from GameCamera.

Here is the call graph for this function:

Field Documentation

◆ Alpha

uint8_t TourCamera::Alpha

◆ bActivateAudio

bool TourCamera::bActivateAudio

◆ bShotComplete

bool TourCamera::bShotComplete

◆ bTourComplete

bool TourCamera::bTourComplete

◆ KeyFrameIndex

size_t TourCamera::KeyFrameIndex

◆ KeyFrameProgress

f32 TourCamera::KeyFrameProgress

◆ ShotIndex

size_t TourCamera::ShotIndex

◆ Type

TOUR_TYPE TourCamera::Type

The documentation for this class was generated from the following files: