You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
552 B
24 lines
552 B
#ifndef _FONT_H_
|
|
|
|
#define _FONT_H_
|
|
|
|
#include "basic.h"
|
|
|
|
struct __font {
|
|
SDL_Surface *image;
|
|
SDL_Surface *raw;
|
|
_point size;
|
|
} typedef _font;
|
|
|
|
extern _point font_lastsize;
|
|
extern _font font[3];
|
|
|
|
extern void font_setcolor (unsigned char r, unsigned char g, unsigned char b, int size);
|
|
extern void font_draw (int x, int y, char *text, int size);
|
|
extern void font_gfxdraw (int x, int y, char *text, int size, int ypos);
|
|
extern void font_drawbold (int x, int y, char *text, int size, int bold);
|
|
extern void font_load ();
|
|
extern void font_free ();
|
|
|
|
#endif
|