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