Brenta Engine 1.2
Loading...
Searching...
No Matches
brenta::Camera Class Reference

Data Structures

class  Aircraft
 
class  Builder
 
struct  Config
 
class  Spherical
 

Public Types

enum class  ProjectionType { Perspective , Orthographic }
 
enum class  Movement { Forward , Backward , Left , Right }
 

Public Member Functions

 Camera (Config conf)
 
 Camera (Builder &builder)
 
std::variant< Spherical, Aircraftget_pos () const
 
Transform get_transform ()
 
float get_fov () const
 
glm::mat4 get_view_matrix () const
 
ProjectionType get_projection_type () const
 
glm::mat4 get_projection_matrix (int window_width, int window_height) const
 
glm::vec3 get_world_up () const
 
glm::vec3 get_front () const
 
glm::vec3 get_up () const
 
glm::vec3 get_right () const
 
void set_pos (std::variant< Spherical, Aircraft > pos)
 
void set_projection_type (ProjectionType proj_type)
 
void set_fov (float fov)
 
void set_world_up (glm::vec3 world_up)
 
void set_front (glm::vec3 front)
 
void set_up (glm::vec3 up)
 
void set_right (glm::vec3 right)
 

Detailed Description

Definition at line 37 of file camera.hpp.

Member Enumeration Documentation

◆ Movement

enum class brenta::Camera::Movement
strong

Definition at line 142 of file camera.hpp.

◆ ProjectionType

enum class brenta::Camera::ProjectionType
strong

Definition at line 136 of file camera.hpp.

Constructor & Destructor Documentation

◆ Camera() [1/2]

Camera::Camera ( Config  conf)

Definition at line 13 of file camera.cpp.

◆ Camera() [2/2]

Camera::Camera ( Builder builder)

Definition at line 26 of file camera.cpp.

Member Function Documentation

◆ get_fov()

float Camera::get_fov ( ) const

Definition at line 117 of file camera.cpp.

◆ get_front()

glm::vec3 Camera::get_front ( ) const

Definition at line 122 of file camera.cpp.

◆ get_pos()

std::variant< Camera::Spherical, Camera::Aircraft > Camera::get_pos ( ) const

Definition at line 107 of file camera.cpp.

◆ get_projection_matrix()

glm::mat4 Camera::get_projection_matrix ( int  window_width,
int  window_height 
) const

Definition at line 48 of file camera.cpp.

◆ get_projection_type()

Camera::ProjectionType Camera::get_projection_type ( ) const

Definition at line 102 of file camera.cpp.

◆ get_right()

glm::vec3 Camera::get_right ( ) const

Definition at line 132 of file camera.cpp.

◆ get_transform()

Transform Camera::get_transform ( )

Definition at line 112 of file camera.cpp.

◆ get_up()

glm::vec3 Camera::get_up ( ) const

Definition at line 127 of file camera.cpp.

◆ get_view_matrix()

glm::mat4 Camera::get_view_matrix ( ) const

Definition at line 31 of file camera.cpp.

◆ get_world_up()

glm::vec3 Camera::get_world_up ( ) const

Definition at line 162 of file camera.cpp.

◆ set_fov()

void Camera::set_fov ( float  fov)

Definition at line 172 of file camera.cpp.

◆ set_front()

void Camera::set_front ( glm::vec3  front)

Definition at line 177 of file camera.cpp.

◆ set_pos()

void Camera::set_pos ( std::variant< Spherical, Aircraft pos)

Definition at line 146 of file camera.cpp.

◆ set_projection_type()

void Camera::set_projection_type ( ProjectionType  proj_type)

Definition at line 141 of file camera.cpp.

◆ set_right()

void Camera::set_right ( glm::vec3  right)

Definition at line 187 of file camera.cpp.

◆ set_up()

void Camera::set_up ( glm::vec3  up)

Definition at line 182 of file camera.cpp.

◆ set_world_up()

void Camera::set_world_up ( glm::vec3  world_up)

Definition at line 167 of file camera.cpp.


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