X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FTexture.h;h=b3b920882d152cc5eafde87ddc2dcbef3b723a14;hb=4309d259becd96ead792678257e910c03a6b4a3d;hp=ef4256b83228b39e5e0301fc80fc85f2070e214a;hpb=cc3d698b8c1ad09d7a3f9e3f28bc84e0ac1735ea;p=l2e.git diff --git a/src/graphics/Texture.h b/src/graphics/Texture.h index ef4256b..b3b9208 100644 --- a/src/graphics/Texture.h +++ b/src/graphics/Texture.h @@ -1,7 +1,7 @@ #ifndef GRAPHICS_TEXTURE_H_ #define GRAPHICS_TEXTURE_H_ -#include "../geometry/Vector.h" +#include "../math/Vector.h" #include @@ -12,25 +12,30 @@ class Texture { public: explicit Texture( SDL_Surface *surface = 0, - const geometry::Vector &size = geometry::Vector(), - const geometry::Vector &offset = geometry::Vector()); + const math::Vector &size = math::Vector(), + const math::Vector &offset = math::Vector()); ~Texture(); + static const int TYPE_ID = 410; + public: - void Render(SDL_Surface *dest, const geometry::Vector &from, const geometry::Vector &to) const; + void Render(SDL_Surface *dest, const math::Vector &from, const math::Vector &to) const; public: void SetSurface(SDL_Surface *s) { surface = s; } - void SetSize(const geometry::Vector &s) { size = s; } - void SetOffset(const geometry::Vector &o) { offset = o; } + void SetSize(const math::Vector &s) { size = s; } + void SetOffset(const math::Vector &o) { offset = o; } + + static void CreateTypeDescription(); + static void Construct(void *); private: SDL_Surface *surface; - geometry::Vector size; - geometry::Vector offset; + math::Vector size; + math::Vector offset; }; } -#endif /* GRAPHICS_TEXTURE_H_ */ +#endif