summaryrefslogtreecommitdiff
path: root/src/client/font.h
blob: 418cef33e852d9542fbc7573c85784559b3f70c0 (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

#ifndef FONT_H

#define FONT_H

#include <SDL_ttf.h>
#include <assert.h>
#include "main.h"

#define COLOR_WHITE	255, 255, 255
#define COLOR_BLACK	0, 0, 0

#define COLOR_RED	255, 0, 0
#define COLOR_GREEN	0, 255, 0
#define COLOR_BLUE	0, 0, 255

#define COLOR_YELLOW	255, 255, 0
#define FONT_SIZE	16
#define FONT_FILE	"DejaVuSans.ttf"
extern bool_t isFontInicialized();
extern void initFont(char *file,int size);
extern void drawFont(char *s,int x,int y,int r,int g,int b);
extern void drawFontMaxSize(char *s, int x, int y, int w, int h, int r, int g, int b);
extern int getFontSize();
extern void getTextSize(char *s, int *w, int *h);
extern void quitFont();

#endif