YAGE  1.0
Yet Another Game Engine
Camera Class Reference

The game camera implemented as a Singleton. Primary use is to generate Model-View-Projection matrices. More...

#include <Camera.h>

Public Member Functions

 Camera (Camera const &)=delete
 
void operator= (Camera const &)=delete
 

Static Public Member Functions

static CameraGetInstance ()
 
static glm::mat4 GetProjectionMatrix ()
 Gets the camera projection matrix. More...
 
static glm::mat4 GetViewMatrix ()
 Gets the camera view matrix. More...
 
static glm::vec3 GetEyeDirection ()
 Gets the direction the camera is looking at. More...
 
static void resizeWindow (float width, float height)
 
static void ComputeMatrices ()
 

Static Public Attributes

static float fov = 45.0f
 The field of view. More...
 
static float aspect
 The aspect ratio. More...
 
static float zNear
 
static float zFar
 

Detailed Description

The game camera implemented as a Singleton. Primary use is to generate Model-View-Projection matrices.

Constructor & Destructor Documentation

Camera::Camera ( Camera const &  )
delete

Member Function Documentation

void Camera::ComputeMatrices ( )
static
static glm::vec3 Camera::GetEyeDirection ( )
static

Gets the direction the camera is looking at.

Returns
The eye direction.
static Camera& Camera::GetInstance ( )
inlinestatic
static glm::mat4 Camera::GetProjectionMatrix ( )
static

Gets the camera projection matrix.

Returns
The projection matrix.
static glm::mat4 Camera::GetViewMatrix ( )
static

Gets the camera view matrix.

Returns
The view matrix.
void Camera::operator= ( Camera const &  )
delete
void Camera::resizeWindow ( float  width,
float  height 
)
static

Member Data Documentation

float Camera::aspect
static

The aspect ratio.

float Camera::fov = 45.0f
static

The field of view.

float Camera::zFar
static
float Camera::zNear
static