OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
Camera Class Reference

#include <Camera.h>

Static Public Member Functions

static void reset ()
 
static bool update ()
 
static void setSize (glm::i32vec2 s)
 
static void handleAction (ActionEvents action, bool isFinished)
 
static void handleMouseMotion (int x, int y)
 
static void handleControllerAxis (float value, KeyboardButton axis)
 
static void setPosition (glm::vec3 p)
 
static glm::vec3 getPosition ()
 
static glm::vec2 getRotation ()
 
static glm::mat4 getProjectionMatrix ()
 
static glm::mat4 getViewMatrix ()
 
static void setSensitivityX (float sens)
 
static float getSensitivityX ()
 
static void setSensitivityY (float sens)
 
static float getSensitivityY ()
 
static void setUpdateViewFrustum (bool u)
 
static bool getUpdateViewFrustum ()
 
static void setRoom (int r)
 
static int getRoom ()
 
static void setShowOverlay (bool s)
 
static bool getShowOverlay ()
 
static bool boxInFrustum (BoundingBox b)
 
static void displayFrustum (glm::mat4 MVP)
 
static void displayUI ()
 

Static Private Member Functions

static void calculateFrustumPlanes ()
 

Static Private Attributes

static glm::vec3 pos
 
static glm::vec2 rot
 
static glm::vec3 posSpeed
 
static glm::vec2 rotSpeed
 
static glm::mat4 projection
 
static glm::mat4 view
 
static float rotationDeltaX = 0.75f
 
static float rotationDeltaY = 0.75f
 
static bool updateViewFrustum = true
 
static bool dirty = true
 
static bool showOverlay = false
 
static bool movingFaster = false
 
static int room = -1
 

Detailed Description

Definition at line 15 of file Camera.h.

Member Function Documentation

void Camera::reset ( )
static

Definition at line 67 of file Camera.cpp.

bool Camera::update ( )
static

Definition at line 159 of file Camera.cpp.

void Camera::setSize ( glm::i32vec2  s)
static
FIXME:
TODO instead of mirroring the Y axis in the shader, scale with -1 here

Definition at line 80 of file Camera.cpp.

void Camera::handleAction ( ActionEvents  action,
bool  isFinished 
)
static

Definition at line 85 of file Camera.cpp.

void Camera::handleMouseMotion ( int  x,
int  y 
)
static

Definition at line 111 of file Camera.cpp.

void Camera::handleControllerAxis ( float  value,
KeyboardButton  axis 
)
static

Definition at line 140 of file Camera.cpp.

static void Camera::setPosition ( glm::vec3  p)
inlinestatic
FIXME:
The Y axis seems to be the source of all evil?

Definition at line 26 of file Camera.h.

static glm::vec3 Camera::getPosition ( )
inlinestatic

Definition at line 27 of file Camera.h.

static glm::vec2 Camera::getRotation ( )
inlinestatic

Definition at line 29 of file Camera.h.

static glm::mat4 Camera::getProjectionMatrix ( )
inlinestatic

Definition at line 30 of file Camera.h.

static glm::mat4 Camera::getViewMatrix ( )
inlinestatic

Definition at line 31 of file Camera.h.

static void Camera::setSensitivityX ( float  sens)
inlinestatic

Definition at line 33 of file Camera.h.

static float Camera::getSensitivityX ( )
inlinestatic

Definition at line 34 of file Camera.h.

static void Camera::setSensitivityY ( float  sens)
inlinestatic

Definition at line 36 of file Camera.h.

static float Camera::getSensitivityY ( )
inlinestatic

Definition at line 37 of file Camera.h.

static void Camera::setUpdateViewFrustum ( bool  u)
inlinestatic

Definition at line 39 of file Camera.h.

static bool Camera::getUpdateViewFrustum ( )
inlinestatic

Definition at line 40 of file Camera.h.

static void Camera::setRoom ( int  r)
inlinestatic

Definition at line 42 of file Camera.h.

static int Camera::getRoom ( )
inlinestatic

Definition at line 43 of file Camera.h.

static void Camera::setShowOverlay ( bool  s)
inlinestatic

Definition at line 45 of file Camera.h.

static bool Camera::getShowOverlay ( )
inlinestatic

Definition at line 46 of file Camera.h.

bool Camera::boxInFrustum ( BoundingBox  b)
static

Definition at line 379 of file Camera.cpp.

void Camera::displayFrustum ( glm::mat4  MVP)
static

Definition at line 396 of file Camera.cpp.

void Camera::displayUI ( )
static

Definition at line 214 of file Camera.cpp.

void Camera::calculateFrustumPlanes ( )
staticprivate

Definition at line 279 of file Camera.cpp.

Member Data Documentation

glm::vec3 Camera::pos
staticprivate

Definition at line 56 of file Camera.h.

glm::vec2 Camera::rot
staticprivate

Definition at line 57 of file Camera.h.

glm::vec3 Camera::posSpeed
staticprivate

Definition at line 58 of file Camera.h.

glm::vec2 Camera::rotSpeed
staticprivate

Definition at line 59 of file Camera.h.

glm::mat4 Camera::projection
staticprivate

Definition at line 60 of file Camera.h.

glm::mat4 Camera::view
staticprivate

Definition at line 61 of file Camera.h.

float Camera::rotationDeltaX = 0.75f
staticprivate

Definition at line 62 of file Camera.h.

float Camera::rotationDeltaY = 0.75f
staticprivate

Definition at line 62 of file Camera.h.

bool Camera::updateViewFrustum = true
staticprivate

Definition at line 63 of file Camera.h.

bool Camera::dirty = true
staticprivate

Definition at line 63 of file Camera.h.

bool Camera::showOverlay = false
staticprivate

Definition at line 63 of file Camera.h.

bool Camera::movingFaster = false
staticprivate

Definition at line 63 of file Camera.h.

int Camera::room = -1
staticprivate

Definition at line 64 of file Camera.h.


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