]> git.localhorst.tv Git - space.git/blob - src/graphics/Camera.h
10699f097e2f5e6d9ca38892bd5d78a3aa5bff7e
[space.git] / src / graphics / Camera.h
1 #ifndef SPACE_CAMERA_H_
2 #define SPACE_CAMERA_H_
3
4 #include "../math/Vector.h"
5
6
7 namespace space {
8
9 class Camera {
10
11 public:
12         Camera(int w, int h, const Vector<float> &);
13
14 public:
15         void Resize(int w, int h);
16
17         Vector<float> Offset() {
18                 return -(*target - offset);
19         }
20
21 private:
22         const Vector<float> *target;
23         Vector<float> offset;
24
25 };
26
27 }
28
29 #endif