4 * Created on: Oct 21, 2012
8 #ifndef GRAPHICS_TEXTURE_H_
9 #define GRAPHICS_TEXTURE_H_
11 #include "../geometry/Vector.h"
21 SDL_Surface *surface = 0,
22 const geometry::Vector<int> &size = geometry::Vector<int>(),
23 const geometry::Vector<int> &offset = geometry::Vector<int>());
27 void Render(SDL_Surface *dest, const geometry::Vector<int> &from, const geometry::Vector<int> &to) const;
30 void SetSurface(SDL_Surface *s) { surface = s; }
31 void SetSize(const geometry::Vector<int> &s) { size = s; }
32 void SetOffset(const geometry::Vector<int> &o) { offset = o; }
36 geometry::Vector<int> size;
37 geometry::Vector<int> offset;
43 #endif /* GRAPHICS_TEXTURE_H_ */