1 #ifndef GRAPHICS_TEXTURE_H_
2 #define GRAPHICS_TEXTURE_H_
4 #include "../geometry/Vector.h"
14 SDL_Surface *surface = 0,
15 const geometry::Vector<int> &size = geometry::Vector<int>(),
16 const geometry::Vector<int> &offset = geometry::Vector<int>());
19 static const int TYPE_ID = 410;
22 void Render(SDL_Surface *dest, const geometry::Vector<int> &from, const geometry::Vector<int> &to) const;
25 void SetSurface(SDL_Surface *s) { surface = s; }
26 void SetSize(const geometry::Vector<int> &s) { size = s; }
27 void SetOffset(const geometry::Vector<int> &o) { offset = o; }
29 static void CreateTypeDescription();
30 static void Construct(void *);
34 geometry::Vector<int> size;
35 geometry::Vector<int> offset;
41 #endif /* GRAPHICS_TEXTURE_H_ */