GlPortal Class Reference  0.1.1
Source code documentation of the free and open 3D action puzzle game.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
radix::Camera Class Reference

#include <external/RadixEngine/include/radix/Camera.hpp>

Public Member Functions

 Camera ()
 
 Camera (float fovy, float aspect, float zNear, float zFar)
 
void getProjMatrix (Matrix4f &m) const
 
void setProjMatrix (const Matrix4f &m)
 
void getViewMatrix (Matrix4f &m) const
 
void setViewMatrix (const Matrix4f &m)
 
void getInvViewMatrix (Matrix4f &m) const
 
void setFovy (float fovy)
 
float getFovy () const
 
void setAspect (float aspect)
 
float getAspect () const
 
void setZNear (float zNear)
 
float getZNear () const
 
void setZFar (float zFar)
 
float getZFar () const
 
void setPerspective ()
 
void setOrthographic ()
 
void setBounds (float left, float right, float bottom, float top)
 
Vector3f getPosition () const
 
void setPosition (const Vector3f &)
 
Quaternion getOrientation () const
 
void setOrientation (const Quaternion &)
 

Static Public Attributes

static constexpr const float DEFAULT_FOVY = rad(60)
 
static constexpr const float DEFAULT_ASPECT = 1
 
static constexpr const float DEFAULT_ZNEAR = 0.1f
 
static constexpr const float DEFAULT_ZFAR = 100
 
static constexpr const bool DEFAULT_PERSPECTIVE = true
 
static constexpr const float DEFAULT_TOP = 0.5f
 
static constexpr const float DEFAULT_BOTTOM = -0.5f
 
static constexpr const float DEFAULT_LEFT = -0.5f
 
static constexpr const float DEFAULT_RIGHT = 0.5f
 

Private Member Functions

void calcProj ()
 
void calcView ()
 

Private Attributes

Vector3f position
 
Quaternion orientation
 
Matrix4f projMatrix
 
Matrix4f viewMatrix
 
Matrix4f invViewMatrix
 
bool perspective = DEFAULT_PERSPECTIVE
 
float fovy = DEFAULT_FOVY
 
float aspect = DEFAULT_ASPECT
 
float zNear = DEFAULT_ZNEAR
 
float zFar = DEFAULT_ZFAR
 
float top = DEFAULT_TOP
 
float bottom = DEFAULT_BOTTOM
 
float left = DEFAULT_LEFT
 
float right = DEFAULT_RIGHT
 

Constructor & Destructor Documentation

radix::Camera::Camera ( )
inline
radix::Camera::Camera ( float  fovy,
float  aspect,
float  zNear,
float  zFar 
)

Member Function Documentation

void radix::Camera::calcProj ( )
private
void radix::Camera::calcView ( )
private
float radix::Camera::getAspect ( ) const
float radix::Camera::getFovy ( ) const
void radix::Camera::getInvViewMatrix ( Matrix4f m) const
Quaternion radix::Camera::getOrientation ( ) const
Vector3f radix::Camera::getPosition ( ) const
void radix::Camera::getProjMatrix ( Matrix4f m) const
void radix::Camera::getViewMatrix ( Matrix4f m) const
float radix::Camera::getZFar ( ) const
float radix::Camera::getZNear ( ) const
void radix::Camera::setAspect ( float  aspect)
void radix::Camera::setBounds ( float  left,
float  right,
float  bottom,
float  top 
)
void radix::Camera::setFovy ( float  fovy)
void radix::Camera::setOrientation ( const Quaternion o)
void radix::Camera::setOrthographic ( )
void radix::Camera::setPerspective ( )
void radix::Camera::setPosition ( const Vector3f p)
void radix::Camera::setProjMatrix ( const Matrix4f m)
void radix::Camera::setViewMatrix ( const Matrix4f m)
void radix::Camera::setZFar ( float  zFar)
void radix::Camera::setZNear ( float  zNear)

Field Documentation

float radix::Camera::aspect = DEFAULT_ASPECT
private
float radix::Camera::bottom = DEFAULT_BOTTOM
private
constexpr const float radix::Camera::DEFAULT_ASPECT = 1
static
constexpr const float radix::Camera::DEFAULT_BOTTOM = -0.5f
static
constexpr const float radix::Camera::DEFAULT_FOVY = rad(60)
static
constexpr const float radix::Camera::DEFAULT_LEFT = -0.5f
static
constexpr const bool radix::Camera::DEFAULT_PERSPECTIVE = true
static
constexpr const float radix::Camera::DEFAULT_RIGHT = 0.5f
static
constexpr const float radix::Camera::DEFAULT_TOP = 0.5f
static
constexpr const float radix::Camera::DEFAULT_ZFAR = 100
static
constexpr const float radix::Camera::DEFAULT_ZNEAR = 0.1f
static
float radix::Camera::fovy = DEFAULT_FOVY
private
Matrix4f radix::Camera::invViewMatrix
private
float radix::Camera::left = DEFAULT_LEFT
private
Quaternion radix::Camera::orientation
private
bool radix::Camera::perspective = DEFAULT_PERSPECTIVE
private
Vector3f radix::Camera::position
private
Matrix4f radix::Camera::projMatrix
private
float radix::Camera::right = DEFAULT_RIGHT
private
float radix::Camera::top = DEFAULT_TOP
private
Matrix4f radix::Camera::viewMatrix
private
float radix::Camera::zFar = DEFAULT_ZFAR
private
float radix::Camera::zNear = DEFAULT_ZNEAR
private

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