#include <RenderCamera.h>
Definition at line 11 of file RenderCamera.h.
◆ RenderCamera()
| IncrementalEngine::RenderCamera::RenderCamera |
( |
| ) |
|
◆ ~RenderCamera()
| IncrementalEngine::RenderCamera::~RenderCamera |
( |
| ) |
|
|
virtual |
◆ Draw()
| void IncrementalEngine::RenderCamera::Draw |
( |
| ) |
|
Definition at line 16 of file RenderCamera.cpp.
18 D3DXVECTOR3 up, position, lookAt;
19 float yaw, pitch, roll;
20 D3DXMATRIX rotationMatrix;
24 lookAt = DEFAULT_LOOK_AT;
30 D3DXMatrixRotationYawPitchRoll(&rotationMatrix, yaw, pitch, roll);
32 D3DXVec3TransformCoord(&lookAt, &lookAt, &rotationMatrix);
33 D3DXVec3TransformCoord(&up, &up, &rotationMatrix);
35 lookAt = position + lookAt;
37 D3DXMatrixLookAtLH(&
_viewMatrix, &position, &lookAt, &up);
◆ GetPosition()
| D3DXVECTOR3 IncrementalEngine::RenderCamera::GetPosition |
( |
| ) |
|
◆ GetRotation()
| D3DXVECTOR3 IncrementalEngine::RenderCamera::GetRotation |
( |
| ) |
|
◆ GetViewMatrix()
| void IncrementalEngine::RenderCamera::GetViewMatrix |
( |
D3DXMATRIX & |
viewMatrix | ) |
|
◆ SetPosition() [1/2]
| void IncrementalEngine::RenderCamera::SetPosition |
( |
D3DXVECTOR3 |
position | ) |
|
◆ SetPosition() [2/2]
| void IncrementalEngine::RenderCamera::SetPosition |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
◆ SetRotation() [1/2]
| void IncrementalEngine::RenderCamera::SetRotation |
( |
D3DXVECTOR3 |
rotation | ) |
|
◆ SetRotation() [2/2]
| void IncrementalEngine::RenderCamera::SetRotation |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
◆ _position
| D3DXVECTOR3 IncrementalEngine::RenderCamera::_position |
|
private |
◆ _rotation
| D3DXVECTOR3 IncrementalEngine::RenderCamera::_rotation |
|
private |
◆ _viewMatrix
| D3DXMATRIX IncrementalEngine::RenderCamera::_viewMatrix |
|
private |