Khaotic Engine Reborn
Loading...
Searching...
No Matches
camera_class.h
1
2// Filename: cameraclass.h
4#ifndef _CAMERACLASS_H_
5#define _CAMERACLASS_H_
6
7
9// INCLUDES //
11#include <directxmath.h>
12using namespace DirectX;
13
14
16// Class name: camera_class
19{
20public:
24
25 void set_position(float, float, float);
26 void set_rotation(float, float, float);
27
28 XMFLOAT3 get_position();
29 XMFLOAT3 get_rotation();
30
31
32 void render();
33 XMMATRIX get_view_matrix(XMMATRIX& view_matrix) const;
34
35 void render_reflection(float);
36 void get_reflection_view_matrix(XMMATRIX&) const;
37
38private:
39 float position_x_, position_y_, position_z_;
40 float rotation_x_, rotation_y_, rotation_z_;
41 XMMATRIX view_matrix_;
42 XMMATRIX reflection_view_matrix_;
43
44};
45
46#endif