]> git.localhorst.tv Git - space.git/blobdiff - src/graphics/Camera.cpp
move to SDL2
[space.git] / src / graphics / Camera.cpp
index ea2f97de328f5270a0edeab91c998d9444b9aefa..74ebd5f6fb3759f99870ec618af5ed20b5c707e6 100644 (file)
@@ -3,9 +3,9 @@
 
 namespace space {
 
-Camera::Camera(int w, int h, const Vector<float> &t)
+Camera::Camera(Vector<int> s, const Vector<float> &t)
 : target(&t)
-, size(w, h)
+, size(s)
 , offset(size / 2)
 , zoom(1)
 , zoomAcc(0) {
@@ -13,8 +13,8 @@ Camera::Camera(int w, int h, const Vector<float> &t)
 }
 
 
-void Camera::Resize(int w, int h) {
-       size = Vector<int>(w, h);
+void Camera::Resize(Vector<int> s) {
+       size = s;
        offset = size / 2;
 }