OpenBarnyard
 
Loading...
Searching...
No Matches
ACameraHelper Class Referenceabstract

#include <ACameraHelper.h>

Inheritance diagram for ACameraHelper:
ABoneAttachCameraHelper

Public Member Functions

 TDECLARE_CLASS (ACameraHelper, Toshi::TObject)
 
 ACameraHelper ()
 
 ~ACameraHelper ()
 
virtual void UpdateCurrentCamera ()
 
virtual TBOOL OnUpdate (TFLOAT a_fDeltaTime)=0
 
virtual TBOOL Unk2 (void *)=0
 
virtual TBOOL Unk3 (void *, void *)=0
 
virtual void OnCreate ()=0
 
virtual void OnDestroy ()=0
 
virtual void OnAttach ()=0
 
virtual void GetCameraRotation (Toshi::TVector4 &a_rOutRotation) const
 
virtual void Unk7 (void *)
 
virtual void OnDetach ()
 
virtual TFLOAT GetFOV () const
 
ACameraGetCamera ()
 
void SetCamera (ACamera *a_pCamera)
 

Protected Attributes

ACameram_pCamera
 

Detailed Description

Definition at line 4 of file ACameraHelper.h.

Constructor & Destructor Documentation

◆ ACameraHelper()

ACameraHelper::ACameraHelper ( )

Definition at line 15 of file ACameraHelper.cpp.

16{
17}

◆ ~ACameraHelper()

ACameraHelper::~ACameraHelper ( )

Definition at line 19 of file ACameraHelper.cpp.

20{
21}

Member Function Documentation

◆ GetCamera()

ACamera * ACameraHelper::GetCamera ( )
inline

Definition at line 26 of file ACameraHelper.h.

26{ return m_pCamera; }
ACamera * m_pCamera

◆ GetCameraRotation()

void ACameraHelper::GetCameraRotation ( Toshi::TVector4 & a_rOutRotation) const
virtual

Definition at line 30 of file ACameraHelper.cpp.

31{
32 a_rOutRotation = ACameraManager::GetSingleton()->GetCurrentCamera()->GetMatrix().GetTranslation();
33 a_rOutRotation.w = 1.0f;
34}

◆ GetFOV()

TFLOAT ACameraHelper::GetFOV ( ) const
virtual

Definition at line 44 of file ACameraHelper.cpp.

45{
47}
static TFLOAT sm_fCurrentFOV
Definition ACamera.h:9

◆ OnAttach()

virtual void ACameraHelper::OnAttach ( )
pure virtual

Implemented in ABoneAttachCameraHelper.

◆ OnCreate()

virtual void ACameraHelper::OnCreate ( )
pure virtual

Implemented in ABoneAttachCameraHelper.

◆ OnDestroy()

virtual void ACameraHelper::OnDestroy ( )
pure virtual

Implemented in ABoneAttachCameraHelper.

◆ OnDetach()

void ACameraHelper::OnDetach ( )
virtual

Reimplemented in ABoneAttachCameraHelper.

Definition at line 40 of file ACameraHelper.cpp.

41{
42}

◆ OnUpdate()

virtual TBOOL ACameraHelper::OnUpdate ( TFLOAT a_fDeltaTime)
pure virtual

Implemented in ABoneAttachCameraHelper.

◆ SetCamera()

void ACameraHelper::SetCamera ( ACamera * a_pCamera)
inline

Definition at line 27 of file ACameraHelper.h.

27{ m_pCamera = a_pCamera; }

◆ TDECLARE_CLASS()

ACameraHelper::TDECLARE_CLASS ( ACameraHelper ,
Toshi::TObject  )

◆ Unk2()

virtual TBOOL ACameraHelper::Unk2 ( void * )
pure virtual

Implemented in ABoneAttachCameraHelper.

◆ Unk3()

virtual TBOOL ACameraHelper::Unk3 ( void * ,
void *  )
pure virtual

Implemented in ABoneAttachCameraHelper.

◆ Unk7()

void ACameraHelper::Unk7 ( void * )
virtual

Definition at line 36 of file ACameraHelper.cpp.

37{
38}

◆ UpdateCurrentCamera()

void ACameraHelper::UpdateCurrentCamera ( )
virtual

Definition at line 24 of file ACameraHelper.cpp.

25{
26 m_pCamera = ACameraManager::GetSingleton()->GetCurrentCamera();
27}

Member Data Documentation

◆ m_pCamera

ACamera* ACameraHelper::m_pCamera
protected

Definition at line 31 of file ACameraHelper.h.


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