My Project
Loading...
Searching...
No Matches
fonthand.h
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
32extern const int font_ascii[256];
33
34extern JE_byte textGlowFont, textGlowBrightness;
35extern JE_boolean levelWarningDisplay;
36extern JE_byte levelWarningLines;
37extern char levelWarningText[12][61];
38extern JE_boolean warningRed;
39extern JE_byte warningSoundDelay;
40extern JE_word armorShipDelay;
41extern JE_byte warningCol;
42extern JE_shortint warningColChange;
43
44void JE_dString(SDL_Surface * screen, int x, int y, const char *s, unsigned int font);
45
46int JE_fontCenter(const char *s, unsigned int font);
47int JE_textWidth(const char *s, unsigned int font);
48void JE_textShade(SDL_Surface * screen, int x, int y, const char *s, unsigned int colorbank, int brightness, unsigned int shadetype);
49void JE_outText(SDL_Surface * screen, int x, int y, const char *s, unsigned int colorbank, int brightness);
50void JE_outTextModify(SDL_Surface * screen, int x, int y, const char *s, unsigned int filter, unsigned int brightness, unsigned int font);
51void JE_outTextAdjust(SDL_Surface * screen, int x, int y, const char *s, unsigned int filter, int brightness, unsigned int font, bool shadow);
52void JE_outTextAndDarken(SDL_Surface * screen, int x, int y, const char *s, unsigned int colorbank, unsigned int brightness, unsigned int font);
53
54void JE_updateWarning(SDL_Surface * screen);
55void JE_outTextGlow(SDL_Surface * screen, int x, int y, const char *s);
56
57#endif /* FONTHAND_H */