]> git.localhorst.tv Git - l2e.git/blobdiff - src/graphics/Camera.h
switched geometric scalars from floating to fixed
[l2e.git] / src / graphics / Camera.h
index 6067baba68e4b5c2cdc8f11e103ce7e152f38b72..4b2216b8c8d96773e6ebf2252c97f0fc1f732073 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef GRAPHICS_CAMERA_H_
 #define GRAPHICS_CAMERA_H_
 
+#include "../math/Fixed.h"
 #include "../math/Vector.h"
 
 namespace graphics {
@@ -8,17 +9,17 @@ namespace graphics {
 class Camera {
 
 public:
-       Camera(int width, int height, const math::Vector<float> *target);
+       Camera(int width, int height, const math::Vector<math::Fixed<8> > *target);
        ~Camera() { }
 
 public:
        void Resize(int w, int h) { halfWidth = w / 2; halfHeight = h / 2; }
-       void SetTarget(const math::Vector<float> *t);
+       void SetTarget(const math::Vector<math::Fixed<8> > *t);
 
        math::Vector<int> CalculateOffset() const;
 
 private:
-       const math::Vector<float> *target;
+       const math::Vector<math::Fixed<8> > *target;
        int halfWidth;
        int halfHeight;