rayzor

view src/camera.h @ 11:fe94d9e986ae

optimized 16bpp swap_buffers
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 10 Apr 2014 08:42:33 +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_