SDL_Surface *infoMessage;
public:
+ struct SurfaceCache {
+ char *text;
+ SDL_Surface *surface;
+ SurfaceCache(): text(NULL), surface(NULL) {}
+ };
bool takeRandomScreenShots;
SDL_Surface *tile[MAX_TILES];
SDL_Surface *medal[4];
+ SDL_Surface *license[2];
SDL_Surface *infoBar;
void delay(int time);
void RGBtoHSV(float r, float g, float b, float *h, float *s, float *v);
void HSVtoRGB(float *r, float *g, float *b, float h, float s, float v);
- SDL_Surface *loadImage(const char *filename);
+ SDL_Surface *loadImage(const char *filename, bool srcalpha = false);
SDL_Surface *loadImage(const char *filename, int hue, int sat, int value);
SDL_Surface *quickSprite(const char *name, SDL_Surface *image);
void fade(int amount);
void setFontSize(int size);
SDL_Surface *getString(const char *in, bool transparent);
void drawString(const char *in, int x, int y, int alignment, SDL_Surface *dest);
+ void drawString(const char *in, int x, int y, int alignment, SDL_Surface *dest, SurfaceCache &cache);
void clearChatString();
void createChatString(const char *in);
void showMedalMessage(int type, const char *in);