summaryrefslogtreecommitdiff
path: root/noncore/games/sfcave-sdl/font.h
blob: ed9c590b1c456c452c8d2fdf18b566013ff3736c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef __FONT_H
#define __FONT_H

#include <SDL/SDL.h>
#include "bfont.h"

#define FONT_MENU_HIGHLIGHTED		1
#define FONT_MENU_UNHIGHLIGHTED		2
#define FONT_WHITE_TEXT				3
#define FONT_COLOURED_TEXT			4
#define FONT_HELP_FONT				5

class FontHandler
{
public:
	static bool init();
	static void cleanUp();

	static int TextWidth( int font, const char *text );
	static int FontHeight( int font );
	static void draw( SDL_Surface *screen, int font, const char *text, int x, int y );
	static void changeColor( int font, int r, int g, int b );

	static BFont *getFont( int font );
private:
	static BFont *menuSelFont;
	static BFont *menuUnSelFont;
	static BFont *whiteFont;
	static BFont *colouredFont;
	static BFont *helpFont;
};

#endif