|
Public Member Functions |
| Font (SDL_Surface *surface) |
int | getHeight () const |
int | getTextWidth (std::string text) const |
void | write (SDL_Surface *surface, std::string text, int x, int y) const |
void | writeCenter (SDL_Surface *surface, std::string text, int y) const |
void | writeCenter (SDL_Surface *surface, std::string text, int x, int y) const |
A simple font engine, called SFont, that uses special .pngs as fonts.