X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FTexture.h;h=bd85aaafb1fe5d4b9258e30894b7888b5af6db19;hb=0285546b22f9e8f496ca6b1abffdd232647b6b6a;hp=ef4256b83228b39e5e0301fc80fc85f2070e214a;hpb=cc3d698b8c1ad09d7a3f9e3f28bc84e0ac1735ea;p=l2e.git diff --git a/src/graphics/Texture.h b/src/graphics/Texture.h index ef4256b..bd85aaa 100644 --- a/src/graphics/Texture.h +++ b/src/graphics/Texture.h @@ -16,6 +16,8 @@ public: const geometry::Vector &offset = geometry::Vector()); ~Texture(); + static const int TYPE_ID = 410; + public: void Render(SDL_Surface *dest, const geometry::Vector &from, const geometry::Vector &to) const; @@ -24,6 +26,9 @@ public: void SetSize(const geometry::Vector &s) { size = s; } void SetOffset(const geometry::Vector &o) { offset = o; } + static void CreateTypeDescription(); + static void Construct(void *); + private: SDL_Surface *surface; geometry::Vector size;