unlogic
Loading...
Searching...
No Matches
unlogic::Camera Class Reference

#include <Camera.h>

Public Member Functions

void SetDPI (float new_dpi)
 
void SetWindowSize (glm::vec2 const &new_window)
 
glm::vec2 GetWindowSize () const
 
void TranslatePixel (glm::vec2 const &distance, float d=0.f)
 
void TranslateWorld (glm::vec3 const &translation)
 
glm::vec2 WorldDimensionsAtDepth (float d=0.f) const
 
glm::vec3 ScreenToWorldCoordinate (glm::vec3 const &screen) const
 
glm::vec3 WorldToScreenCoordinate (glm::vec3 const &world) const
 

Protected Member Functions

void CalculateMVP ()
 

Detailed Description

Definition at line 14 of file Camera.h.

Member Function Documentation

◆ CalculateMVP()

void unlogic::Camera::CalculateMVP ( )
inlineprotected

Definition at line 30 of file Camera.h.

◆ GetWindowSize()

glm::vec2 unlogic::Camera::GetWindowSize ( ) const
inline

Definition at line 58 of file Camera.h.

◆ ScreenToWorldCoordinate()

glm::vec3 unlogic::Camera::ScreenToWorldCoordinate ( glm::vec3 const screen) const
inline

Definition at line 88 of file Camera.h.

◆ SetDPI()

void unlogic::Camera::SetDPI ( float  new_dpi)
inline

Definition at line 46 of file Camera.h.

◆ SetWindowSize()

void unlogic::Camera::SetWindowSize ( glm::vec2 const new_window)
inline

Definition at line 52 of file Camera.h.

◆ TranslatePixel()

void unlogic::Camera::TranslatePixel ( glm::vec2 const distance,
float  d = 0.f 
)
inline

Definition at line 63 of file Camera.h.

◆ TranslateWorld()

void unlogic::Camera::TranslateWorld ( glm::vec3 const translation)
inline

Definition at line 70 of file Camera.h.

◆ WorldDimensionsAtDepth()

glm::vec2 unlogic::Camera::WorldDimensionsAtDepth ( float  d = 0.f) const
inline

Definition at line 76 of file Camera.h.

◆ WorldToScreenCoordinate()

glm::vec3 unlogic::Camera::WorldToScreenCoordinate ( glm::vec3 const world) const
inline

Definition at line 90 of file Camera.h.


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