SAGE
A Simple Academic Game Engine
Loading...
Searching...
No Matches
Sage::CCameraCommon Class Reference

The camera common variables class. More...

#include <SageCameraCommon.h>

Inheritance diagram for Sage::CCameraCommon:

Static Protected Attributes

static XMFLOAT4X4 m_f4x4Orient
 Orientation matrix.
 
static XMFLOAT4X4 m_f4x4View
 View matrix.
 
static XMFLOAT4X4 m_f4x4Projection
 Projection matrix.
 

Detailed Description

CCameraCommon is a singleton class that encapsulates camera properties that need to be shared between classes, specifically, the orientation, view, and projection matrices in a form that doesn't need to be 16-byte aligned. Byte alignment is necessary for things that need to be shared with the GPU. Don't ignore it - if you do then things might appear to work for a while, but it will bite you in the neck when you least expect it.