]> git.localhorst.tv Git - l2e.git/blobdiff - src/graphics/Frame.h
renamed namespace geometry -> math
[l2e.git] / src / graphics / Frame.h
index 62c052d0765d168686d4d452a6868bf77c6ed0fe..023b694785678123d6f93d10cc7e26523e2a778f 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef GRAPHICS_FRAME_H_
 #define GRAPHICS_FRAME_H_
 
-#include "../geometry/Vector.h"
+#include "../math/Vector.h"
 
 #include <SDL.h>
 
@@ -21,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<int> BorderSize() const { return borderSize; }
+       const math::Vector<int> BorderSize() const { return borderSize; }
        int RepeatWidth() const { return RepeatSize().X(); }
        int RepeatHeight() const { return RepeatSize().Y(); }
-       const geometry::Vector<int> RepeatSize() const { return repeatSize; }
-       void Draw(SDL_Surface *dest, const geometry::Vector<int> &position, int width, int height) const;
+       const math::Vector<int> RepeatSize() const { return repeatSize; }
+       void Draw(SDL_Surface *dest, const math::Vector<int> &position, int width, int height) const;
 
 public:
        void SetSurface(SDL_Surface *s) { surface = s; }
-       void SetBorderSize(const geometry::Vector<int> &s) { borderSize = s; }
-       void SetRepeatSize(const geometry::Vector<int> &s) { repeatSize = s; }
-       void SetOffset(const geometry::Vector<int> &o) { offset = o; }
+       void SetBorderSize(const math::Vector<int> &s) { borderSize = s; }
+       void SetRepeatSize(const math::Vector<int> &s) { repeatSize = s; }
+       void SetOffset(const math::Vector<int> &o) { offset = o; }
 
        static void CreateTypeDescription();
        static void Construct(void *);
 
 private:
        SDL_Surface *surface;
-       geometry::Vector<int> borderSize;
-       geometry::Vector<int> repeatSize;
-       geometry::Vector<int> offset;
+       math::Vector<int> borderSize;
+       math::Vector<int> repeatSize;
+       math::Vector<int> offset;
 
 };