Debian Codegraph @

prboom2/src/dsda/font.h

raw
1 //
2 // Copyright(C) 2023 by Ryan Krafnick
3 //
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 // of the License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // DESCRIPTION:
15 // DSDA Font
16 //
17
18 #ifndef __DSDA_FONT__
19 #define __DSDA_FONT__
20
21 #include "r_defs.h"
22
23 #define HU_FONTSTART '!' /* the first font characters */
24 #define HU_FONTEND (0x7f) /*jff 2/16/98 '_' the last font characters */
25 #define HU_FONTSIZE (HU_FONTEND - HU_FONTSTART + 1)
26
27 typedef struct {
28 const patchnum_t *font;
29 int height;
30 int line_height;
31 int space_width;
32 int start;
33 } dsda_font_t;
34
35 extern dsda_font_t hud_font;
36 extern dsda_font_t exhud_font;
37
38 void dsda_InitFont(void);
39
40 #endif