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
Camera.h
Go to the documentation of this file.
1 // Filename: Camera.h
4 
5 //Preprocessor directive designed to cause the current source file to be included only once in a single compilation
6 #pragma once
7 
8 //Includes
9 #include "CGFInclude.h"
10 #include "Vector3f.h"
11 #include "CGFMath.h"
12 
14 {
16 };
17 
18 namespace CGF
19 {
21  {
22  public:
23  Camera();
24  Camera(CameraDefault camDefault);
25  ~Camera();
26 
27  void SetPosition(float x, float y, float z);
28  void SetDirection(float x, float y, float z);
29  void SetUp(float x, float y, float z);
30  void SetRotation(float x, float y, float z);
31 
32  Vector3f GetPosition();
33  Vector3f GetLookAt();
34 
35  void Render();
36  XMMATRIX GetViewMatrix();
37 
38  private:
39  Vector3f m_position;
40  Vector3f m_lookAt;
41  Vector3f m_up;
42  XMMATRIX m_viewMatrix;
43  };
44 }