4 * Created on: Aug 5, 2012
12 void Sprite::Draw(SDL_Surface *dest, int x, int y, int col, int row) const {
13 SDL_Rect srcRect, destRect;
14 srcRect.x = col * Width();
15 srcRect.y = row * Height();
21 destRect.h = Height();
22 SDL_BlitSurface(surface, &srcRect, dest, &destRect);