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) {
}
-void Camera::Resize(int w, int h) {
- size = Vector<int>(w, h);
+void Camera::Resize(Vector<int> s) {
+ size = s;
offset = size / 2;
}