]> git.localhorst.tv Git - space.git/blobdiff - src/graphics/Camera.h
move to SDL2
[space.git] / src / graphics / Camera.h
index 4d49cb618d6ece6ecb2c40635aa4c66a219231f5..815b4b047fdf1e107b3190034ac8ffe02b4a9071 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef SPACE_CAMERA_H_
 #define SPACE_CAMERA_H_
 
-#include "../math/Vector.h"
+#include "Vector.h"
 
 
 namespace space {
@@ -9,7 +9,7 @@ namespace space {
 class Camera {
 
 public:
-       Camera(int w, int h, const Vector<float> &);
+       Camera(Vector<int> size, const Vector<float> &);
 
 public:
        void SetTarget(const Vector<float> &t) { target = &t; }
@@ -18,7 +18,8 @@ public:
        Vector<int> ScreenSize() const { return size; }
        float Zoom() const { return zoom; }
 
-       void Resize(int w, int h);
+       void Resize(int w, int h) { Resize(Vector<int>(w, h)); }
+       void Resize(Vector<int>);
        void Update(float deltaT);
 
        void StartZoom();