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

Public Member Functions

 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
 

Protected Member Functions

void InitializePitchRoll ()
 

Protected Attributes

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: