X-Git-Url: http://git.localhorst.tv/?p=space.git;a=blobdiff_plain;f=src%2Fgraphics%2FCamera.h;h=815b4b047fdf1e107b3190034ac8ffe02b4a9071;hp=4d49cb618d6ece6ecb2c40635aa4c66a219231f5;hb=61c2d30a60d586cbe63885885c6a373c7713af1e;hpb=08d0e47634e1632c96ebe3308535a86f5e625b40 diff --git a/src/graphics/Camera.h b/src/graphics/Camera.h index 4d49cb6..815b4b0 100644 --- a/src/graphics/Camera.h +++ b/src/graphics/Camera.h @@ -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 &); + Camera(Vector size, const Vector &); public: void SetTarget(const Vector &t) { target = &t; } @@ -18,7 +18,8 @@ public: Vector ScreenSize() const { return size; } float Zoom() const { return zoom; } - void Resize(int w, int h); + void Resize(int w, int h) { Resize(Vector(w, h)); } + void Resize(Vector); void Update(float deltaT); void StartZoom();