C++ Game Framework  2013-06-04
CGF is a DirectX 11 game framework, built in C++ and DirectX 11. This is used to contain many to the DirectX functionality and wrap them into a framework to make game development easier.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CGF::Camera Class Reference

#include <Camera.h>

Public Member Functions

 Camera ()
 
 Camera (CameraDefault camDefault)
 
 ~Camera ()
 
void SetPosition (float x, float y, float z)
 
void SetDirection (float x, float y, float z)
 
void SetUp (float x, float y, float z)
 
void SetRotation (float x, float y, float z)
 
Vector3f GetPosition ()
 
Vector3f GetLookAt ()
 
void Render ()
 
XMMATRIX GetViewMatrix ()
 

Constructor & Destructor Documentation

Camera::Camera ( )

Create an instance of the Camera

Camera::Camera ( CameraDefault  camDefault)

Create an instance of the Camera

Which default camera to choose?

Camera::~Camera ( )

Destroy this instance of the Camera

Member Function Documentation

Vector3f Camera::GetLookAt ( )

Get the look at direction of the camera

Vector3f Camera::GetPosition ( )

Get the position of the camera

XMMATRIX Camera::GetViewMatrix ( )

Get the camera as a matrix

void Camera::Render ( )

Render the camera into a Matrix

void Camera::SetDirection ( float  x,
float  y,
float  z 
)

Set the Look At position of the Camera

Position in the X axis Position in the Y axis Position in the Z axis

void Camera::SetPosition ( float  x,
float  y,
float  z 
)

Set the position of the Camera

Position in the X axis Position in the Y axis Position in the Z axis

void Camera::SetRotation ( float  x,
float  y,
float  z 
)

Rotate the camera, relative to the default positions

Position in the X axis Position in the Y axis Position in the Z axis

void Camera::SetUp ( float  x,
float  y,
float  z 
)

Set the Up vector of the Camera

Position in the X axis Position in the Y axis Position in the Z axis


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