]> icculus.org git repositories - btb/d2x.git/blob - main/gamefont.h
Pass the extra two parameters to get_seg_masks.
[btb/d2x.git] / main / gamefont.h
1 /* $Id: gamefont.h,v 1.4 2004-08-28 23:17:45 schaffner Exp $ */
2 /*
3 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
4 SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
5 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
6 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
7 IN USING, DISPLAYING,  AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
8 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
9 FREE PURPOSES.  IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
10 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES.  THE END-USER UNDERSTANDS
11 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
12 COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
13 */
14
15 /*
16  *
17  * Font declarations for the game,.
18  *
19  */
20
21
22 #ifndef _GAMEFONT_H
23 #define _GAMEFONT_H
24
25 #include "gr.h"
26
27 // When adding a new font, don't forget to change the filename in
28 // gamefont.c!!!!!!!!!!!!!!!!!!!!!!!!!!!
29
30 // We are interleaving low & high resolution fonts, so to access a
31 // font you say fontnum+flag where flag is 0 for lowres, 1 for hires
32
33 #define GFONT_BIG_1     0
34 #define GFONT_MEDIUM_1  2
35 #define GFONT_MEDIUM_2  4
36 #define GFONT_MEDIUM_3  6
37 #define GFONT_SMALL     8
38
39 #define SMALL_FONT      (Gamefonts[GFONT_SMALL + FontHires])
40 #define MEDIUM1_FONT    (Gamefonts[GFONT_MEDIUM_1 + FontHires])
41 #define MEDIUM2_FONT    (Gamefonts[GFONT_MEDIUM_2 + FontHires])
42 #define MEDIUM3_FONT    (Gamefonts[GFONT_MEDIUM_3 + FontHires])
43 #define HUGE_FONT       (Gamefonts[GFONT_BIG_1 + FontHires])
44
45 #define GAME_FONT       SMALL_FONT
46
47 #define MAX_FONTS 10
48
49 extern grs_font *Gamefonts[MAX_FONTS];
50
51 void gamefont_init();
52 void gamefont_close();
53
54 extern int FontHires;
55 extern int FontHiresAvailable;
56
57 #endif /* _GAMEFONT_H */