Karma Engine
Loading...
Searching...
No Matches
Karma::PerspectiveCamera Class Reference
Inheritance diagram for Karma::PerspectiveCamera:
Collaboration diagram for Karma::PerspectiveCamera:

Public Member Functions

 PerspectiveCamera (float fovRad, float aspectRatio, float nearPlane, float farPlane)
 
- Public Member Functions inherited from Karma::Camera
 Camera (const glm::vec3 &initialCameraPosition)
 
const glm::vec3 & GetPosition () const
 
float GetRotation () const
 
void LeftMouseButtonPressed ()
 
void LeftMouseButtonReleased ()
 
void ComputeCameraFront ()
 
void SetPosition (const glm::vec3 &position)
 
void SetRotation (float rotation)
 
void SetCameraFront (const glm::vec3 &front)
 
void SetCameraUp (const glm::vec3 &up)
 
void MoveForward (float amount)
 
void MoveSideways (float amount)
 
void MoveUp (float amount)
 
void RotateAboutYAxis (float amount)
 
void RotateAboutXAxis (float amount)
 
const glm::mat4 & GetProjectionMatrix () const
 
const glm::mat4 & GetViewMatirx () const
 

Additional Inherited Members

- Protected Member Functions inherited from Karma::Camera
void InitializePitchRoll ()
 
- Protected Attributes inherited from Karma::Camera
glm::mat4 m_ProjectionMatrix
 
glm::mat4 m_ViewMatrix
 
glm::vec3 m_Position
 
glm::vec3 m_CameraFront
 
glm::vec3 m_CameraUp
 
float m_Rotation = 0.0f
 
bool m_IsLeftMouseButtonPressed = false
 
float m_LastMouseX
 
float m_LastMouseY
 
const float m_Sensitivity = 0.1f
 
float m_Roll = 0.0f
 
float m_Pitch = 0.0f
 

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