]> git.localhorst.tv Git - space.git/blob - src/graphics/Camera.cpp
0994a5ab8f0dd9cebe25f54dbdf46fbbf7c36bfd
[space.git] / src / graphics / Camera.cpp
1 #include "Camera.h"
2
3
4 namespace space {
5
6 Camera::Camera(int w, int h, const Vector<float> &t)
7 : target(&t)
8 , offset(w/2, h/2) {
9
10 }
11
12
13 void Camera::Resize(int w, int h) {
14         offset = Vector<float>(w/2, h/2);
15 }
16
17 }