4 * Created on: Oct 21, 2012
8 #ifndef GRAPHICS_TEXTURE_H_
9 #define GRAPHICS_TEXTURE_H_
11 #include "../geometry/Vector.h"
24 void Render(SDL_Surface *dest, const geometry::Vector<int> &from, const geometry::Vector<int> &to) const;
27 void SetSurface(SDL_Surface *s) { surface = s; }
28 void SetOffset(const geometry::Vector<int> &o) { offset = o; }
29 void SetSize(const geometry::Vector<int> &s) { size = s; }
33 geometry::Vector<int> offset;
34 geometry::Vector<int> size;
40 #endif /* GRAPHICS_TEXTURE_H_ */