]> icculus.org git repositories - btb/d2x.git/blob - main/gamefont.h
landscape fixes, implemented gr_check_mode
[btb/d2x.git] / main / gamefont.h
1 /* $Id: gamefont.h,v 1.3 2003-10-10 09:36:35 btb 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  * Old Log:
20  * Revision 1.2  1995/08/18  10:23:54  allender
21  * removed large font -- added PC small font
22  *
23  * Revision 1.1  1995/05/16  15:56:55  allender
24  * Initial revision
25  *
26  * Revision 2.0  1995/02/27  11:31:09  john
27  * New version 2.0, which has no anonymous unions, builds with
28  * Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
29  *
30  * Revision 1.7  1994/11/18  16:41:28  adam
31  * trimmed meat
32  *
33  * Revision 1.6  1994/11/17  13:07:00  adam
34  * removed unused font
35  *
36  * Revision 1.5  1994/11/03  21:36:02  john
37  * Added code for credit fonts.
38  *
39  * Revision 1.4  1994/08/17  20:20:25  matt
40  * Took out alternate-color versions of font3, since this is a mono font
41  *
42  * Revision 1.3  1994/08/11  12:44:32  adam
43  * killed a #define
44  *
45  * Revision 1.2  1994/08/10  19:57:16  john
46  * Changed font stuff; Took out old menu; messed up lots of
47  * other stuff like game sequencing messages, etc.
48  *
49  * Revision 1.1  1994/08/10  17:20:22  john
50  * Initial revision
51  *
52  *
53  */
54
55
56 #ifndef _GAMEFONT_H
57 #define _GAMEFONT_H
58
59 #include "gr.h"
60
61 // When adding a new font, don't forget to change the filename in
62 // gamefont.c!!!!!!!!!!!!!!!!!!!!!!!!!!!
63
64 // We are interleaving low & high resolution fonts, so to access a
65 // font you say fontnum+flag where flag is 0 for lowres, 1 for hires
66
67 #define GFONT_BIG_1     0
68 #define GFONT_MEDIUM_1  2
69 #define GFONT_MEDIUM_2  4
70 #define GFONT_MEDIUM_3  6
71 #define GFONT_SMALL     8
72
73 #define SMALL_FONT      (Gamefonts[GFONT_SMALL + FontHires])
74 #define MEDIUM1_FONT    (Gamefonts[GFONT_MEDIUM_1 + FontHires])
75 #define MEDIUM2_FONT    (Gamefonts[GFONT_MEDIUM_2 + FontHires])
76 #define MEDIUM3_FONT    (Gamefonts[GFONT_MEDIUM_3 + FontHires])
77 #define HUGE_FONT       (Gamefonts[GFONT_BIG_1 + FontHires])
78
79 #define GAME_FONT       SMALL_FONT
80
81 #define MAX_FONTS 10
82
83 extern grs_font *Gamefonts[MAX_FONTS];
84
85 void gamefont_init();
86 void gamefont_close();
87
88 extern int FontHires;
89 extern int FontHiresAvailable;
90
91 #endif /* _GAMEFONT_H */