]> git.localhorst.tv Git - space.git/blob - src/graphics/Camera.cpp
a72157a9ccc15c2e02d54929812b876a257fa249
[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 , zoom(0) {
10
11 }
12
13
14 void Camera::Resize(int w, int h) {
15         offset = Vector<float>(w/2, h/2);
16 }
17
18 void Camera::Update(float delta) {
19
20 }
21
22 void Camera::DoubleZoom() {
23         zoom += 1;
24 }
25
26 void Camera::HalfZoom() {
27         zoom -= 1;
28 }
29
30 }