4 * Created on: Sep 26, 2012
11 #include "../graphics/Sprite.h"
13 using geometry::Vector;
24 void Area::Render(SDL_Surface *dest, const graphics::Sprite *tileset, const Vector<int> &inOffset) const {
25 for (int i(0); i < numTiles; ++i) {
27 inOffset.X() + (i % width) * tileset->Width(),
28 inOffset.Y() + (i / width) * tileset->Height());
29 const Tile &tile(tiles[i]);
30 tileset->Draw(dest, offset, tile.Offset().X(), tile.Offset().Y());