wren
Vulkan-based game engine
Loading...
Searching...
No Matches
editor::Camera Class Reference

#include <camera.hpp>

Collaboration diagram for editor::Camera:

Public Member Functions

 Camera ()=default
 
 Camera (float fov, float aspect_ratio, float z_near, float z_far)
 
auto aspect (float aspect)
 
auto aspect () const
 
auto projection () const
 
auto transform () const
 

Static Public Member Functions

static auto create ()
 

Private Member Functions

void update_projection_matrix ()
 

Private Attributes

wren::scene::components::Transform transform_
 
float fov_ {}
 
float aspect_ratio_ {}
 
float z_near_ {}
 
float z_far_ {}
 
wren::math::Mat4f projection_
 

Constructor & Destructor Documentation

◆ Camera() [1/2]

editor::Camera::Camera ( )
default

◆ Camera() [2/2]

editor::Camera::Camera ( float fov,
float aspect_ratio,
float z_near,
float z_far )
inline
Here is the call graph for this function:

Member Function Documentation

◆ aspect() [1/2]

auto editor::Camera::aspect ( ) const
inline
Here is the caller graph for this function:

◆ aspect() [2/2]

auto editor::Camera::aspect ( float aspect)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ create()

static auto editor::Camera::create ( )
static

◆ projection()

auto editor::Camera::projection ( ) const
inline

◆ transform()

auto editor::Camera::transform ( ) const
inline

◆ update_projection_matrix()

void editor::Camera::update_projection_matrix ( )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ aspect_ratio_

float editor::Camera::aspect_ratio_ {}
private

◆ fov_

float editor::Camera::fov_ {}
private

◆ projection_

wren::math::Mat4f editor::Camera::projection_
private

◆ transform_

wren::scene::components::Transform editor::Camera::transform_
private

◆ z_far_

float editor::Camera::z_far_ {}
private

◆ z_near_

float editor::Camera::z_near_ {}
private

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