4 * Created on: Aug 8, 2012
8 #ifndef GRAPHICS_FONT_H_
9 #define GRAPHICS_FONT_H_
12 #include "../geometry/Point.h"
21 explicit Font(const Sprite *sprite, int digitsCol = 0, int digitsRow = 0) : sprite(sprite), digitsCol(digitsCol), digitsRow(digitsRow) { }
24 int CharWidth() const { return sprite->Width(); }
25 int CharHeight() const { return sprite->Height(); }
26 void DrawDigit(int digit, SDL_Surface *dest, geometry::Point<int> position) const;
27 void DrawNumber(int number, SDL_Surface *dest, geometry::Point<int> position, int digits = 0) const;
38 #endif /* GRAPHICS_FONT_H_ */