Debian Codegraph @

src/fonthand.h

raw symbols SCIP
1 /*
2 * OpenTyrian: A modern cross-platform port of Tyrian
3 * Copyright (C) 2007-2009 The OpenTyrian Development Team
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19 #ifndef FONTHAND_H
20 #define FONTHAND_H
21
22 #include "opentyr.h"
23
24 #include "SDL.h"
25
26 #define PART_SHADE 0
27 #define FULL_SHADE 1
28 #define DARKEN 2
29 #define TRICK 3
30 #define NO_SHADE 255
31
32 extern const int font_ascii[256];
33
34 extern JE_byte textGlowFont, textGlowBrightness;
35 extern JE_boolean levelWarningDisplay;
36 extern JE_byte levelWarningLines;
37 extern char levelWarningText[10][61];
38 extern JE_boolean warningRed;
39 extern JE_byte warningSoundDelay;
40 extern JE_word armorShipDelay;
41 extern JE_byte warningCol;
42 extern JE_shortint warningColChange;
43
44 void JE_dString(SDL_Surface * screen, int x, int y, const char *s, unsigned int font);
45
46 int JE_fontCenter(const char *s, unsigned int font);
47 int JE_textWidth(const char *s, unsigned int font);
48 void JE_textShade(SDL_Surface * screen, int x, int y, const char *s, unsigned int colorbank, int brightness, unsigned int shadetype);
49 void JE_outText(SDL_Surface * screen, int x, int y, const char *s, unsigned int colorbank, int brightness);
50 void JE_outTextModify(SDL_Surface * screen, int x, int y, const char *s, unsigned int filter, unsigned int brightness, unsigned int font);
51 void JE_outTextAdjust(SDL_Surface * screen, int x, int y, const char *s, unsigned int filter, int brightness, unsigned int font, bool shadow);
52 void JE_outTextAndDarken(SDL_Surface * screen, int x, int y, const char *s, unsigned int colorbank, unsigned int brightness, unsigned int font);
53
54 void JE_updateWarning(SDL_Surface * screen);
55 void JE_outTextGlow(SDL_Surface * screen, int x, int y, const char *s);
56
57 #endif /* FONTHAND_H */