X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FCamera.h;h=7403d6faf2ce19a652aabc5d010c5826f66410cc;hb=HEAD;hp=b35acf92abe37d3738f2b7af0fd0b08d548cec99;hpb=b8790ff84da07774a2eb986ca6b9379a16a8ea7b;p=l2e.git diff --git a/src/graphics/Camera.h b/src/graphics/Camera.h index b35acf9..7403d6f 100644 --- a/src/graphics/Camera.h +++ b/src/graphics/Camera.h @@ -1,31 +1,26 @@ -/* - * 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 *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 geometry::Vector *t); + void SetTarget(const math::Vector > *t); + const math::Vector > *GetTarget() const { return target; } - geometry::Vector CalculateOffset() const; + math::Vector CalculateOffset() const; private: - const geometry::Vector *target; + const math::Vector > *target; int halfWidth; int halfHeight; @@ -33,4 +28,4 @@ private: } -#endif /* GRAPHICS_CAMERA_H_ */ +#endif