]> git.localhorst.tv Git - l2e.git/commitdiff
changed camera target to float
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 30 Sep 2012 14:24:14 +0000 (16:24 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 30 Sep 2012 14:24:14 +0000 (16:24 +0200)
src/graphics/Camera.cpp
src/graphics/Camera.h

index d43864ad6d2a44eef942251382c1f56f2f1300ea..a0773db821ca1a14a0ec6fafa066f7533cda8d1a 100644 (file)
@@ -13,13 +13,13 @@ using geometry::Vector;
 
 namespace graphics {
 
-Camera::Camera(int width, int height, const Vector<int> *target)
+Camera::Camera(int width, int height, const Vector<float> *target)
 : target(target), halfWidth(width / 2), halfHeight(height / 2) {
        assert(target && "construct camera without target");
 }
 
 
-void Camera::SetTarget(const Vector<int> *t) {
+void Camera::SetTarget(const Vector<float> *t) {
        assert(t && "cannot change camera target to 0");
        target = t;
 }
index 16c0caf762b409124715280db364457f44831c5e..b35acf92abe37d3738f2b7af0fd0b08d548cec99 100644 (file)
@@ -15,17 +15,17 @@ namespace graphics {
 class Camera {
 
 public:
-       Camera(int width, int height, const geometry::Vector<int> *target);
+       Camera(int width, int height, const geometry::Vector<float> *target);
        ~Camera() { }
 
 public:
        void Resize(int w, int h) { halfWidth = w / 2; halfHeight = h / 2; }
-       void SetTarget(const geometry::Vector<int> *t);
+       void SetTarget(const geometry::Vector<float> *t);
 
        geometry::Vector<int> CalculateOffset() const;
 
 private:
-       const geometry::Vector<int> *target;
+       const geometry::Vector<float> *target;
        int halfWidth;
        int halfHeight;