Fireworks Engine  v2.0
Lightweight Sandbox Game Engine using OpenGL for additional Customisation and Quick Prototyping
fireworks::graphics::FreeFlyCamera Class Reference

A free flying 3D camera. More...

#include <freeflycamera.h>

Inheritance diagram for fireworks::graphics::FreeFlyCamera:
Collaboration diagram for fireworks::graphics::FreeFlyCamera:

Public Member Functions

 FreeFlyCamera (glm::vec3 position, float flySpeed=30.0f, float lookSensitivity=0.25f)
 Creates a 3D camera. More...
 
void update (Window *window, float deltaTime)
 
- Public Member Functions inherited from fireworks::graphics::PerspectiveCamera
 PerspectiveCamera (glm::vec3 position=glm::vec3(0.0f, 0.0f, 0.0f), glm::vec3 worldUp=glm::vec3(0.0f, 1.0f, 0.0f), float aspectRatio=1.33f, float fov=45.0f)
 Creates a perspective camera. More...
 
 PerspectiveCamera (float posX, float posY, float posZ, float upX, float upY, float upZ)
 Creates a perspective camera using default settings and scalar quantities. More...
 
const glm::mat4 & getViewMatrix ()
 Gets the reference to the camera's view matrix. More...
 
const glm::mat4 & getProjectionMatrix () const
 Gets the reference to the camera's projection matrix. More...
 
const glm::mat4 & getViewProjectionsMatrix () const
 Gets the reference to the camera's ViewProjections matrix. More...
 

Public Attributes

float MovementSpeed
 The movement speed of the camera. More...
 
float MouseSensitivity
 The look speed of the camera. More...
 
- Public Attributes inherited from fireworks::graphics::PerspectiveCamera
glm::vec3 position
 The position of the camera in 3d space. More...
 
glm::vec3 camFront
 The front vector of the camera. More...
 
glm::vec3 camUp
 The up vector of the camera. More...
 
glm::vec3 camRight
 The right vector of the camera. More...
 
glm::vec3 worldUp
 The world up vector. More...
 
float FOV
 Field of view angle of the camera. More...
 
float aspectRatio
 Camera view's aspect ratio. More...
 
float nearClipping
 near clipping distance of the camera More...
 
float farClipping
 far clipping distance of the camera More...
 
float yaw
 The yaw angle of the camera in world space. More...
 
float pitch
 The pitch angle of the camera in world space. More...
 

Additional Inherited Members

- Protected Member Functions inherited from fireworks::graphics::PerspectiveCamera
void updateCameraVectors ()
 
void updateViewMatrix ()
 
void updateProjectionMatrix ()
 

Detailed Description

A free flying 3D camera.

Constructor & Destructor Documentation

◆ FreeFlyCamera()

fireworks::graphics::FreeFlyCamera::FreeFlyCamera ( glm::vec3  position,
float  flySpeed = 30.0f,
float  lookSensitivity = 0.25f 
)

Creates a 3D camera.

Parameters
positionThe starting position of the camera in 3d space
flySpeedThe movement speed of the camera
lookSensitivityThe look speed of the camera

Member Function Documentation

◆ update()

void fireworks::graphics::FreeFlyCamera::update ( Window window,
float  deltaTime 
)

Member Data Documentation

◆ MouseSensitivity

float fireworks::graphics::FreeFlyCamera::MouseSensitivity

The look speed of the camera.

◆ MovementSpeed

float fireworks::graphics::FreeFlyCamera::MovementSpeed

The movement speed of the camera.


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