#include <CoreCamera.h>
Public Member Functions | |
CoreCamera () | |
void | SetProjectionPerspective (float fov, float aspect, float nearPlane, float farPlane) |
void | SetProjectionParallel (float fov, float aspect, float nearPlane, float farPlane) |
void | ProjectionToEffectVariable (ID3D10EffectMatrixVariable *projectionVar) |
void | SetView (CoreVector3 &pos, CoreVector3 &lookAt, CoreVector3 &up) |
void | SetView (CoreVector3 &xAxis, CoreVector3 &yAxis, CoreVector3 &zAxis, CoreVector3 &pos) |
void | ViewToEffectVariable (ID3D10EffectMatrixVariable *viewVar) |
void | WorldViewProjectionToEffectVariable (ID3D10EffectMatrixVariable *viewVar, CoreMatrix4x4 &world) |
void | GoForward (float distance) |
void | GoBackward (float distance) |
void | GoLeft (float distance) |
void | GoRight (float distance) |
void | MouseLook (float deltaX, float deltaY) |
CoreMatrix4x4 | GetProjection () |
CoreMatrix4x4 | GetView () |
Private Member Functions | |
void | generateViewFromPrivateVariables () |
Private Attributes | |
CoreMatrix4x4 | projection |
CoreMatrix4x4 | view |
CoreVector3 | pos |
CoreVector3 | xAxis |
CoreVector3 | yAxis |
CoreVector3 | zAxis |
CoreVector3 | up |
CoreCamera::CoreCamera | ( | ) |
void CoreCamera::generateViewFromPrivateVariables | ( | ) | [private] |
CoreMatrix4x4 CoreCamera::GetProjection | ( | ) | [inline] |
CoreMatrix4x4 CoreCamera::GetView | ( | ) | [inline] |
void CoreCamera::GoBackward | ( | float | distance | ) |
void CoreCamera::GoForward | ( | float | distance | ) |
void CoreCamera::GoLeft | ( | float | distance | ) |
void CoreCamera::GoRight | ( | float | distance | ) |
void CoreCamera::MouseLook | ( | float | deltaX, | |
float | deltaY | |||
) |
void CoreCamera::ProjectionToEffectVariable | ( | ID3D10EffectMatrixVariable * | projectionVar | ) |
void CoreCamera::SetProjectionParallel | ( | float | fov, | |
float | aspect, | |||
float | nearPlane, | |||
float | farPlane | |||
) |
void CoreCamera::SetProjectionPerspective | ( | float | fov, | |
float | aspect, | |||
float | nearPlane, | |||
float | farPlane | |||
) |
void CoreCamera::SetView | ( | CoreVector3 & | xAxis, | |
CoreVector3 & | yAxis, | |||
CoreVector3 & | zAxis, | |||
CoreVector3 & | pos | |||
) |
void CoreCamera::SetView | ( | CoreVector3 & | pos, | |
CoreVector3 & | lookAt, | |||
CoreVector3 & | up | |||
) |
void CoreCamera::ViewToEffectVariable | ( | ID3D10EffectMatrixVariable * | viewVar | ) |
void CoreCamera::WorldViewProjectionToEffectVariable | ( | ID3D10EffectMatrixVariable * | viewVar, | |
CoreMatrix4x4 & | world | |||
) |
CoreVector3 CoreCamera::pos [private] |
CoreMatrix4x4 CoreCamera::projection [private] |
CoreVector3 CoreCamera::up [private] |
CoreMatrix4x4 CoreCamera::view [private] |
CoreVector3 CoreCamera::xAxis [private] |
CoreVector3 CoreCamera::yAxis [private] |
CoreVector3 CoreCamera::zAxis [private] |