Vyroda
Game engine made by hand, with modern C++ and Vulkan.
Loading...
Searching...
No Matches
Vyroda::Camera Class Referenceexport

Public Member Functions

void init (glm::vec3 const &start_pos)
void backward ()
void down ()
void forward ()
void left ()
void right ()
void up ()
glm::vec3 getPos () const
glm::mat4 getView () const
glm::mat4 getThirdPersonView (glm::vec3 const &player_pos)
glm::vec3 getDirection () const
void setPos (glm::vec3 const &pos)
glm::mat4 frustumProj (float fovy, float s, float n, float f)
void updateDeltaTime (double const delta_time)
void updateAngle (double const x_offset, double const y_offset)
void move ()
bool isInit () const
glm::vec3 getDeltaTime ()
void savePreviousState ()
void interpolate (double alpha)
std::vector< glm::vec4 > getFrustumPlanes (glm::mat4 const vp)

Member Function Documentation

◆ backward()

void Vyroda::Camera::backward ( )
Here is the call graph for this function:

◆ down()

void Vyroda::Camera::down ( )
Here is the call graph for this function:

◆ forward()

void Vyroda::Camera::forward ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ frustumProj()

glm::mat4 Vyroda::Camera::frustumProj ( float fovy,
float s,
float n,
float f )

fovy : viertical field of view s : aspect ratio viewport n : near distance f : far distance

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getDeltaTime()

glm::vec3 Vyroda::Camera::getDeltaTime ( )
Here is the caller graph for this function:

◆ getDirection()

glm::vec3 Vyroda::Camera::getDirection ( ) const
inline

◆ getFrustumPlanes()

std::vector< glm::vec4 > Vyroda::Camera::getFrustumPlanes ( glm::mat4 const vp)

◆ getPos()

glm::vec3 Vyroda::Camera::getPos ( ) const
inline
Here is the caller graph for this function:

◆ getThirdPersonView()

glm::mat4 Vyroda::Camera::getThirdPersonView ( glm::vec3 const & player_pos)
Here is the caller graph for this function:

◆ getView()

glm::mat4 Vyroda::Camera::getView ( ) const
Here is the caller graph for this function:

◆ init()

void Vyroda::Camera::init ( glm::vec3 const & start_pos)
Here is the caller graph for this function:

◆ interpolate()

void Vyroda::Camera::interpolate ( double alpha)
inline

◆ isInit()

bool Vyroda::Camera::isInit ( ) const
inline

◆ left()

void Vyroda::Camera::left ( )
Here is the call graph for this function:

◆ move()

void Vyroda::Camera::move ( )
Here is the caller graph for this function:

◆ right()

void Vyroda::Camera::right ( )
Here is the call graph for this function:

◆ savePreviousState()

void Vyroda::Camera::savePreviousState ( )
inline

◆ setPos()

void Vyroda::Camera::setPos ( glm::vec3 const & pos)
inline

◆ up()

void Vyroda::Camera::up ( )
Here is the call graph for this function:

◆ updateAngle()

void Vyroda::Camera::updateAngle ( double const x_offset,
double const y_offset )

◆ updateDeltaTime()

void Vyroda::Camera::updateDeltaTime ( double const delta_time)
inline

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