4 * Created on: Aug 5, 2012
10 using geometry::Point;
14 void Sprite::Draw(SDL_Surface *dest, Point<int> position, int col, int row) const {
15 SDL_Rect srcRect, destRect;
16 srcRect.x = col * Width();
17 srcRect.y = row * Height();
20 destRect.x = position.X();
21 destRect.y = position.Y();
23 destRect.h = Height();
24 SDL_BlitSurface(surface, &srcRect, dest, &destRect);