#ifndef GRAPHICS_CAMERA_H_
#define GRAPHICS_CAMERA_H_
+#include "../math/Fixed.h"
#include "../math/Vector.h"
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;
}
-#endif /* GRAPHICS_CAMERA_H_ */
+#endif