OSDN Git Service

wwww
[proj16/16.git] / 16 / v2 / source / verge / ENGINE / FONT.H
1 /*\r
2 Copyright (C) 1998 BJ Eirich (aka vecna)\r
3 This program is free software; you can redistribute it and/or\r
4 modify it under the terms of the GNU General Public License\r
5 as published by the Free Software Foundation; either version 2\r
6 of the License, or (at your option) any later version.\r
7 This program is distributed in the hope that it will be useful,\r
8 but WITHOUT ANY WARRANTY; without even the implied warranty of\r
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\r
10 See the GNU General Public Lic\r
11 See the GNU General Public License for more details.\r
12 You should have received a copy of the GNU General Public License\r
13 along with this program; if not, write to the Free Software\r
14 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.\r
15 */\r
16 \r
17 #ifndef FONT_H\r
18 #define FONT_H\r
19 \r
20 struct fontstruct\r
21 {\r
22   byte width, height;                  // Font character dimensions\r
23   byte *data;                          // Font bitmap data\r
24 };\r
25 \r
26 extern struct fontstruct font[10];      // Font stuff;\r
27 extern int numfonts;                    // number of loaded fonts.\r
28 extern int curx, cury;\r
29 \r
30 extern int LoadFont(char *fname);\r
31 extern void TextColor(int c);\r
32 extern void NumColor(int c);\r
33 extern void GotoXY(int x, int y);\r
34 extern void printstring(int fnt, char *str);\r
35 extern void dec_to_asciiz(int num, char *buf);\r
36 \r
37 #endif // FONT_H\r