-/*
- * Camera.h
- *
- * Created on: Sep 29, 2012
- * Author: holy
- */
-
#ifndef GRAPHICS_CAMERA_H_
#define GRAPHICS_CAMERA_H_
-#include "../geometry/Vector.h"
+#include "../math/Fixed.h"
+#include "../math/Vector.h"
namespace graphics {
class Camera {
public:
- Camera(int width, int height, const geometry::Vector<int> *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 geometry::Vector<int> *t);
+ void SetTarget(const math::Vector<math::Fixed<8> > *t);
- geometry::Vector<int> CalculateOffset() const;
+ math::Vector<int> CalculateOffset() const;
private:
- const geometry::Vector<int> *target;
+ const math::Vector<math::Fixed<8> > *target;
int halfWidth;
int halfHeight;
}
-#endif /* GRAPHICS_CAMERA_H_ */
+#endif