rayzor

view src/camera.h @ 7:75bc89c2abc4

fixed the mouse handling problem
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 07 Apr 2014 08:05:06 +0300
parents 2a5340a6eee4
children d94a69933a71
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_