43 lines
1023 B
C++
43 lines
1023 B
C++
////////////////////////////////////////////////////////////////////////////////
|
|
// Filename: cameraclass.h
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
#ifndef _CAMERACLASS_H_
|
|
#define _CAMERACLASS_H_
|
|
|
|
#include "Vectors.h"
|
|
#include "Matrices.h"
|
|
|
|
//////////////
|
|
// INCLUDES //
|
|
//////////////
|
|
//#include <d3dx10math.h>
|
|
|
|
typedef Vector3 D3DXVECTOR3;
|
|
typedef Matrix4 D3DXMATRIX;
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
// Class name: CameraClass
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
class CameraClass
|
|
{
|
|
public:
|
|
CameraClass();
|
|
CameraClass(const CameraClass&);
|
|
~CameraClass();
|
|
|
|
void SetPosition(float, float, float);
|
|
void SetRotation(float, float, float);
|
|
|
|
D3DXVECTOR3 GetPosition();
|
|
D3DXVECTOR3 GetRotation();
|
|
|
|
void Render();
|
|
void GetViewMatrix(D3DXMATRIX&);
|
|
|
|
private:
|
|
float m_positionX, m_positionY, m_positionZ;
|
|
float m_rotationX, m_rotationY, m_rotationZ;
|
|
D3DXMATRIX m_viewMatrix;
|
|
};
|
|
|
|
#endif |