rayzor

view src/camera.h @ 0:2a5340a6eee4

rayzor first commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 05 Apr 2014 08:46:27 +0300
parents
children a826bf0fb169
line source
1 #ifndef CAMERA_H_
2 #define CAMERA_H_
4 #include "vmath.h"
6 class Camera {
7 private:
8 Vector3 pos;
9 Vector3 target;
10 float fov;
12 public:
13 Camera();
15 void set_position(const Vector3 &pos);
16 const Vector3 &get_position() const;
18 void set_target(const Vector3 &target);
19 const Vector3 &get_target() const;
21 void set_fov(float fov);
22 float get_fov() const;
24 Matrix4x4 get_matrix() const;
25 Matrix4x4 get_inv_matrix() const;
26 };
28 #endif // CAMERA_H_