| 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_Hcxx . . $ `src/fonthand.h:20:9`! |
| 21 | |
| 22 | #include "opentyr.h"cxx . . $ `<file>/src/opentyr.h`/ |
| 23 | |
| 24 | #include "SDL.h" |
| 25 | |
| 26 | #define PART_SHADEcxx . . $ `src/fonthand.h:26:9`! 0 |
| 27 | #define FULL_SHADEcxx . . $ `src/fonthand.h:27:9`! 1 |
| 28 | #define DARKENcxx . . $ `src/fonthand.h:28:9`! 2 |
| 29 | #define TRICKcxx . . $ `src/fonthand.h:29:9`! 3 |
| 30 | #define NO_SHADEcxx . . $ `src/fonthand.h:30:9`! 255 |
| 31 | |
| 32 | extern const int font_asciicxx . . $ font_ascii.[256]; |
| 33 | |
| 34 | extern JE_bytecxx . . $ JE_byte# textGlowFontcxx . . $ textGlowFont., textGlowBrightnesscxx . . $ textGlowBrightness.; |
| 35 | extern JE_booleancxx . . $ JE_boolean# levelWarningDisplaycxx . . $ levelWarningDisplay.; |
| 36 | extern JE_bytecxx . . $ JE_byte# levelWarningLinescxx . . $ levelWarningLines.; |
| 37 | extern char levelWarningTextcxx . . $ levelWarningText.[10][61]; |
| 38 | extern JE_booleancxx . . $ JE_boolean# warningRedcxx . . $ warningRed.; |
| 39 | extern JE_bytecxx . . $ JE_byte# warningSoundDelaycxx . . $ warningSoundDelay.; |
| 40 | extern JE_wordcxx . . $ JE_word# armorShipDelaycxx . . $ armorShipDelay.; |
| 41 | extern JE_bytecxx . . $ JE_byte# warningColcxx . . $ warningCol.; |
| 42 | extern JE_shortintcxx . . $ JE_shortint# warningColChangecxx . . $ warningColChange.; |
| 43 | |
| 44 | void JE_dStringcxx . . $ JE_dString(19e4cd32eb7ad4fc).(SDL_Surfacecxx . . $ SDL_Surface# * screen, int x, int y, const char *s, unsigned int font); |
| 45 | |
| 46 | int JE_fontCentercxx . . $ JE_fontCenter(1df18506ef0a631b).(const char *s, unsigned int font); |
| 47 | int JE_textWidthcxx . . $ JE_textWidth(1df18506ef0a631b).(const char *s, unsigned int font); |
| 48 | void JE_textShadecxx . . $ JE_textShade(bb6cf87f29d3df77).(SDL_Surfacecxx . . $ SDL_Surface# * screen, int x, int y, const char *s, unsigned int colorbank, int brightness, unsigned int shadetype); |
| 49 | void JE_outTextcxx . . $ JE_outText(894c69c4be246b6e).(SDL_Surfacecxx . . $ SDL_Surface# * screen, int x, int y, const char *s, unsigned int colorbank, int brightness); |
| 50 | void JE_outTextModifycxx . . $ JE_outTextModify(6303b30c6464185e).(SDL_Surfacecxx . . $ SDL_Surface# * screen, int x, int y, const char *s, unsigned int filter, unsigned int brightness, unsigned int font); |
| 51 | void JE_outTextAdjustcxx . . $ JE_outTextAdjust(f31fd28f47a6d6f4).(SDL_Surfacecxx . . $ SDL_Surface# * screen, int x, int y, const char *s, unsigned int filter, int brightness, unsigned int font, boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! shadow); |
| 52 | void JE_outTextAndDarkencxx . . $ JE_outTextAndDarken(6303b30c6464185e).(SDL_Surfacecxx . . $ SDL_Surface# * screen, int x, int y, const char *s, unsigned int colorbank, unsigned int brightness, unsigned int font); |
| 53 | |
| 54 | void JE_updateWarningcxx . . $ JE_updateWarning(60a0b30a00b4fc6d).(SDL_Surfacecxx . . $ SDL_Surface# * screen); |
| 55 | void JE_outTextGlowcxx . . $ JE_outTextGlow(472f2eee5aa9d4c0).(SDL_Surfacecxx . . $ SDL_Surface# * screen, int x, int y, const char *s); |
| 56 | |
| 57 | #endif /* FONTHAND_H */ |