Falcon
Public Member Functions | Public Attributes | List of all members
Camera Class Reference

#include <Camera.h>

Public Member Functions

void SetMousePos (glm::vec2 values)
 
void SetMouseScroll (glm::vec2 values)
 
 Camera (glm::vec3 position=glm::vec3(0.0f, 0.0f, 0.0f), glm::vec3 up=glm::vec3(0.0f, 1.0f, 0.0f), float yaw=YAW, float pitch=PITCH)
 
 Camera (float posX, float posY, float posZ, float upX, float upY, float upZ, float yaw, float pitch)
 
glm::mat4 GetViewMatrix () const
 
void ProcessKeyboard (Camera_Movement direction, float deltaTime)
 
void ProcessMouseMovement (float xoffset, float yoffset, GLboolean constrainPitch=true)
 
void ProcessMouseScroll (float yoffset)
 

Public Attributes

float m_Zoom
 
glm::vec3 m_Position
 
glm::vec3 m_Forward
 
glm::vec3 m_Up
 
glm::vec3 m_Right
 
glm::vec3 m_WorldUp
 
float m_lastX
 
float m_lastY
 
float m_Yaw
 
float m_Pitch
 
float m_MovementSpeed
 
float m_MouseSensitivity
 

Constructor & Destructor Documentation

◆ Camera() [1/2]

Camera::Camera ( glm::vec3  position = glm::vec3(0.0f, 0.0f, 0.0f),
glm::vec3  up = glm::vec3(0.0f, 1.0f, 0.0f),
float  yaw = YAW,
float  pitch = PITCH 
)

◆ Camera() [2/2]

Camera::Camera ( float  posX,
float  posY,
float  posZ,
float  upX,
float  upY,
float  upZ,
float  yaw,
float  pitch 
)

Member Function Documentation

◆ GetViewMatrix()

glm::mat4 Camera::GetViewMatrix ( ) const

◆ ProcessKeyboard()

void Camera::ProcessKeyboard ( Camera_Movement  direction,
float  deltaTime 
)

◆ ProcessMouseMovement()

void Camera::ProcessMouseMovement ( float  xoffset,
float  yoffset,
GLboolean  constrainPitch = true 
)

◆ ProcessMouseScroll()

void Camera::ProcessMouseScroll ( float  yoffset)

◆ SetMousePos()

void Camera::SetMousePos ( glm::vec2  values)

◆ SetMouseScroll()

void Camera::SetMouseScroll ( glm::vec2  values)

Member Data Documentation

◆ m_Forward

glm::vec3 Camera::m_Forward

◆ m_lastX

float Camera::m_lastX

◆ m_lastY

float Camera::m_lastY

◆ m_MouseSensitivity

float Camera::m_MouseSensitivity

◆ m_MovementSpeed

float Camera::m_MovementSpeed

◆ m_Pitch

float Camera::m_Pitch

◆ m_Position

glm::vec3 Camera::m_Position

◆ m_Right

glm::vec3 Camera::m_Right

◆ m_Up

glm::vec3 Camera::m_Up

◆ m_WorldUp

glm::vec3 Camera::m_WorldUp

◆ m_Yaw

float Camera::m_Yaw

◆ m_Zoom

float Camera::m_Zoom

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