File: DT_drawtext.h

package info (click to toggle)
libsdl-console 1.3-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 360 kB
  • ctags: 145
  • sloc: ansic: 1,387; sh: 153; makefile: 134
file content (37 lines) | stat: -rw-r--r-- 584 bytes parent folder | download | duplicates (3)
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
34
35
36
37
#ifndef Drawtext_h
#define Drawtext_h


#define TRANS_FONT 1


#ifdef __cplusplus
extern "C" {
#endif

typedef struct BitFont_td
{
	SDL_Surface		*FontSurface;
	int			CharWidth;
	int			CharHeight;
	int			FontNumber;
	struct BitFont_td	*NextFont;
} BitFont;


void	DT_DrawText(const char *string, SDL_Surface *surface, int FontType, int x, int y );
int	DT_LoadFont(const char *BitmapName, int flags );
int	DT_FontHeight( int FontNumber );
int	DT_FontWidth( int FontNumber );
BitFont*	DT_FontPointer(int FontNumber );
void	DT_DestroyDrawText();


#ifdef __cplusplus
};
#endif

#endif