#include <ACamera.h>
Definition at line 4 of file ACamera.h.
◆ ACamera()
Definition at line 18 of file ACamera.cpp.
19{
22 m_fProjectionCentreX = 0.5f;
23 m_fProjectionCentreY = 0.5f;
24}
static constinit TMatrix44 IDENTITY
static TFLOAT sm_fCurrentFOV
◆ ~ACamera()
◆ GetMatrix() [1/2]
Toshi::TMatrix44 & ACamera::GetMatrix |
( |
| ) |
|
Definition at line 58 of file ACamera.cpp.
59{
60 return m_Matrix;
61}
◆ GetMatrix() [2/2]
const Toshi::TMatrix44 & ACamera::GetMatrix |
( |
| ) |
const |
Definition at line 53 of file ACamera.cpp.
54{
55 return m_Matrix;
56}
◆ GetOrientation()
TVector4 ACamera::GetOrientation |
( |
| ) |
const |
Definition at line 31 of file ACamera.cpp.
32{
33 TVector4 vOrientation = m_Matrix.AsBasisVector4( Toshi::BASISVECTOR_FORWARD );
34 vOrientation.
w = 1.0f;
35
36 return vOrientation;
37}
◆ LookAtDirection()
void ACamera::LookAtDirection |
( |
const Toshi::TVector4 & | a_rDirection | ) |
|
Definition at line 47 of file ACamera.cpp.
48{
49 TASSERT( a_rDirection.isNormalised() );
50 m_Matrix.LookAtDirection( a_rDirection,
sm_vWorldUp );
51}
static const Toshi::TVector4 sm_vWorldUp
◆ LookAtPoint()
void ACamera::LookAtPoint |
( |
const Toshi::TVector4 & | a_rPoint | ) |
|
Definition at line 39 of file ACamera.cpp.
40{
41 TVector4 vDirection = a_rPoint - m_Matrix.GetTranslation3();
43
45}
void LookAtDirection(const Toshi::TVector4 &a_rDirection)
◆ TDECLARE_CLASS()
ACamera::TDECLARE_CLASS |
( |
ACamera | , |
|
|
Toshi::TObject | ) |
◆ ARenderer
◆ sm_fCurrentFOV
TFLOAT ACamera::sm_fCurrentFOV = Toshi::TMath::DegToRad( 60.0f ) |
|
static |
◆ sm_vInitialLookDirection
const Toshi::TVector4 ACamera::sm_vInitialLookDirection = { 0.0f, 0.0f, 1.0f, 1.0f } |
|
static |
◆ sm_vWorldUp
const Toshi::TVector4 ACamera::sm_vWorldUp = { 0.0f, -1.0f, 0.0f, 1.0f } |
|
static |
The documentation for this class was generated from the following files:
- D:/_dev/OpenBarnyard/Source/OpenBarnyard/Source/Cameras/ACamera.h
- D:/_dev/OpenBarnyard/Source/OpenBarnyard/Source/Cameras/ACamera.cpp