X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FFrame.h;h=023b694785678123d6f93d10cc7e26523e2a778f;hb=092a2dd175a4001a495c84ee85211734fb928c83;hp=defa6b18ab303c175e66226e41969c1ff56a235d;hpb=1907ca03c5e865c4d398170042aa384c67ffff29;p=l2e.git diff --git a/src/graphics/Frame.h b/src/graphics/Frame.h index defa6b1..023b694 100644 --- a/src/graphics/Frame.h +++ b/src/graphics/Frame.h @@ -1,14 +1,7 @@ -/* - * Frame.h - * - * Created on: Aug 7, 2012 - * Author: holy - */ - #ifndef GRAPHICS_FRAME_H_ #define GRAPHICS_FRAME_H_ -#include "../geometry/Vector.h" +#include "../math/Vector.h" #include @@ -28,26 +21,26 @@ public: int MinHeight() const { return 2 * BorderHeight(); } int BorderWidth() const { return BorderSize().X(); } int BorderHeight() const { return BorderSize().Y(); } - const geometry::Vector BorderSize() const { return borderSize; } + const math::Vector BorderSize() const { return borderSize; } int RepeatWidth() const { return RepeatSize().X(); } int RepeatHeight() const { return RepeatSize().Y(); } - const geometry::Vector RepeatSize() const { return repeatSize; } - void Draw(SDL_Surface *dest, const geometry::Vector &position, int width, int height) const; + const math::Vector RepeatSize() const { return repeatSize; } + void Draw(SDL_Surface *dest, const math::Vector &position, int width, int height) const; public: void SetSurface(SDL_Surface *s) { surface = s; } - void SetBorderSize(const geometry::Vector &s) { borderSize = s; } - void SetRepeatSize(const geometry::Vector &s) { repeatSize = s; } - void SetOffset(const geometry::Vector &o) { offset = o; } + void SetBorderSize(const math::Vector &s) { borderSize = s; } + void SetRepeatSize(const math::Vector &s) { repeatSize = s; } + void SetOffset(const math::Vector &o) { offset = o; } static void CreateTypeDescription(); static void Construct(void *); private: SDL_Surface *surface; - geometry::Vector borderSize; - geometry::Vector repeatSize; - geometry::Vector offset; + math::Vector borderSize; + math::Vector repeatSize; + math::Vector offset; };