X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FFrame.h;h=62c052d0765d168686d4d452a6868bf77c6ed0fe;hb=7f0a586b8238c7093a8942ff5b5c4122edd386fc;hp=75bd6056c4204b761f2bf1472629497f76c1212d;hpb=76ebf3fdefce0655ecd2404e735e8fd96347d934;p=l2e.git diff --git a/src/graphics/Frame.h b/src/graphics/Frame.h index 75bd605..62c052d 100644 --- a/src/graphics/Frame.h +++ b/src/graphics/Frame.h @@ -1,10 +1,3 @@ -/* - * Frame.h - * - * Created on: Aug 7, 2012 - * Author: holy - */ - #ifndef GRAPHICS_FRAME_H_ #define GRAPHICS_FRAME_H_ @@ -16,6 +9,9 @@ namespace graphics { class Frame { +public: + static const int TYPE_ID = 405; + public: explicit Frame(SDL_Surface *s = 0, int borderWidth = 1, int borderHeight = 1, int repeatWidth = 1, int repeatHeight = 1, int xOffset = 0, int yOffset = 0) : surface(s), borderSize(borderWidth, borderHeight), repeatSize(repeatWidth, repeatHeight), offset(xOffset, yOffset) { } @@ -38,6 +34,7 @@ public: void SetOffset(const geometry::Vector &o) { offset = o; } static void CreateTypeDescription(); + static void Construct(void *); private: SDL_Surface *surface;