]> git.localhorst.tv Git - l2e.git/blobdiff - src/graphics/Texture.h
renamed namespace geometry -> math
[l2e.git] / src / graphics / Texture.h
index bd85aaafb1fe5d4b9258e30894b7888b5af6db19..0de987a3d6355ab9f46386183c7b4326db9705c9 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef GRAPHICS_TEXTURE_H_
 #define GRAPHICS_TEXTURE_H_
 
-#include "../geometry/Vector.h"
+#include "../math/Vector.h"
 
 #include <SDL.h>
 
@@ -12,27 +12,27 @@ class Texture {
 public:
        explicit Texture(
                        SDL_Surface *surface = 0,
-                       const geometry::Vector<int> &size = geometry::Vector<int>(),
-                       const geometry::Vector<int> &offset = geometry::Vector<int>());
+                       const math::Vector<int> &size = math::Vector<int>(),
+                       const math::Vector<int> &offset = math::Vector<int>());
        ~Texture();
 
        static const int TYPE_ID = 410;
 
 public:
-       void Render(SDL_Surface *dest, const geometry::Vector<int> &from, const geometry::Vector<int> &to) const;
+       void Render(SDL_Surface *dest, const math::Vector<int> &from, const math::Vector<int> &to) const;
 
 public:
        void SetSurface(SDL_Surface *s) { surface = s; }
-       void SetSize(const geometry::Vector<int> &s) { size = s; }
-       void SetOffset(const geometry::Vector<int> &o) { offset = o; }
+       void SetSize(const math::Vector<int> &s) { size = s; }
+       void SetOffset(const math::Vector<int> &o) { offset = o; }
 
        static void CreateTypeDescription();
        static void Construct(void *);
 
 private:
        SDL_Surface *surface;
-       geometry::Vector<int> size;
-       geometry::Vector<int> offset;
+       math::Vector<int> size;
+       math::Vector<int> offset;
 
 };