X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FCamera.h;h=4b2216b8c8d96773e6ebf2252c97f0fc1f732073;hb=5d1a76ae7725af998c6ee46adfe492c68ee1d34f;hp=16c0caf762b409124715280db364457f44831c5e;hpb=e9bdecf5f58fb9e5b2c067c20d0ce70f54f9ecb7;p=l2e.git diff --git a/src/graphics/Camera.h b/src/graphics/Camera.h index 16c0caf..4b2216b 100644 --- a/src/graphics/Camera.h +++ b/src/graphics/Camera.h @@ -1,31 +1,25 @@ -/* - * 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); - geometry::Vector CalculateOffset() const; + math::Vector CalculateOffset() const; private: - const geometry::Vector *target; + const math::Vector > *target; int halfWidth; int halfHeight;