46 lines
1.0 KiB
C++
46 lines
1.0 KiB
C++
////////////////////////////////////////////////////////////////////////////////
|
|
// Filename: cameraclass.h
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
#ifndef _CAMERACLASS_H_
|
|
#define _CAMERACLASS_H_
|
|
|
|
|
|
//////////////
|
|
// INCLUDES //
|
|
//////////////
|
|
#include <directxmath.h>
|
|
using namespace DirectX;
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
// Class name: CameraClass
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
class CameraClass
|
|
{
|
|
public:
|
|
CameraClass();
|
|
CameraClass(const CameraClass&);
|
|
~CameraClass();
|
|
|
|
void SetPosition(float, float, float);
|
|
void SetRotation(float, float, float);
|
|
|
|
XMFLOAT3 GetPosition();
|
|
XMFLOAT3 GetRotation();
|
|
|
|
|
|
void Render();
|
|
XMMATRIX GetViewMatrix(XMMATRIX& viewMatrix);
|
|
|
|
void RenderReflection(float);
|
|
void GetReflectionViewMatrix(XMMATRIX&);
|
|
|
|
private:
|
|
float m_positionX, m_positionY, m_positionZ;
|
|
float m_rotationX, m_rotationY, m_rotationZ;
|
|
XMMATRIX m_viewMatrix;
|
|
XMMATRIX m_reflectionViewMatrix;
|
|
|
|
};
|
|
|
|
#endif |