]> git.localhorst.tv Git - space.git/blobdiff - src/graphics/Camera.cpp
simple zoom
[space.git] / src / graphics / Camera.cpp
index 0994a5ab8f0dd9cebe25f54dbdf46fbbf7c36bfd..a72157a9ccc15c2e02d54929812b876a257fa249 100644 (file)
@@ -5,7 +5,8 @@ namespace space {
 
 Camera::Camera(int w, int h, const Vector<float> &t)
 : target(&t)
-, offset(w/2, h/2) {
+, offset(w/2, h/2)
+, zoom(0) {
 
 }
 
@@ -14,4 +15,16 @@ void Camera::Resize(int w, int h) {
        offset = Vector<float>(w/2, h/2);
 }
 
+void Camera::Update(float delta) {
+
+}
+
+void Camera::DoubleZoom() {
+       zoom += 1;
+}
+
+void Camera::HalfZoom() {
+       zoom -= 1;
+}
+
 }