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