X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FCamera.h;h=4b2216b8c8d96773e6ebf2252c97f0fc1f732073;hb=5d1a76ae7725af998c6ee46adfe492c68ee1d34f;hp=6067baba68e4b5c2cdc8f11e103ce7e152f38b72;hpb=06db9f596cd1c5aa4c0832b387882f7c74c1b4c0;p=l2e.git diff --git a/src/graphics/Camera.h b/src/graphics/Camera.h index 6067bab..4b2216b 100644 --- a/src/graphics/Camera.h +++ b/src/graphics/Camera.h @@ -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 *target); + Camera(int width, int height, const math::Vector > *target); ~Camera() { } public: void Resize(int w, int h) { halfWidth = w / 2; halfHeight = h / 2; } - void SetTarget(const math::Vector *t); + void SetTarget(const math::Vector > *t); math::Vector CalculateOffset() const; private: - const math::Vector *target; + const math::Vector > *target; int halfWidth; int halfHeight;