diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-02-01 22:59:06 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-02-01 22:59:06 +0000 |
| commit | 6d4e1eae16b84918009625a866104ec26a234277 (patch) | |
| tree | a340a8a547a60c9f63c8dfafe8909242f9c9bbd8 /include/font.h | |
nahranie tarballu tuxanci-ng na SVN server
Dusan Durech ( Oroborus )
git-svn-id: http://opensvn.csie.org/tuxanci_ng@1 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'include/font.h')
| -rwxr-xr-x | include/font.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/font.h b/include/font.h new file mode 100755 index 0000000..f938b3b --- /dev/null +++ b/include/font.h @@ -0,0 +1,26 @@ + +#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 + +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 int getFontSize(); +extern void getTextSize(char *s, int *w, int *h); +extern void quitFont(); + +#endif |