forked from KolibriOS/kolibrios
a27452493c
git-svn-id: svn://kolibrios.org@9169 a494cfbc-eb01-0410-851d-a64ba20cac60
59 lines
2.4 KiB
C
59 lines
2.4 KiB
C
/*
|
|
* OpenTyrian: A modern cross-platform port of Tyrian
|
|
* Copyright (C) 2007-2009 The OpenTyrian Development Team
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
*/
|
|
#ifndef FONTHAND_H
|
|
#define FONTHAND_H
|
|
|
|
#include "opentyr.h"
|
|
|
|
#include "SDL.h"
|
|
|
|
#define PART_SHADE 0
|
|
#define FULL_SHADE 1
|
|
#define DARKEN 2
|
|
#define TRICK 3
|
|
#define NO_SHADE 255
|
|
|
|
extern const int font_ascii[256];
|
|
|
|
extern JE_byte textGlowFont, textGlowBrightness;
|
|
extern JE_boolean levelWarningDisplay;
|
|
extern JE_byte levelWarningLines;
|
|
extern char levelWarningText[10][61];
|
|
extern JE_boolean warningRed;
|
|
extern JE_byte warningSoundDelay;
|
|
extern JE_word armorShipDelay;
|
|
extern JE_byte warningCol;
|
|
extern JE_shortint warningColChange;
|
|
|
|
void JE_dString( SDL_Surface * screen, int x, int y, const char *s, unsigned int font );
|
|
|
|
int JE_fontCenter( const char *s, unsigned int font );
|
|
int JE_textWidth( const char *s, unsigned int font );
|
|
void JE_textShade( SDL_Surface * screen, int x, int y, const char *s, unsigned int colorbank, int brightness, unsigned int shadetype );
|
|
void JE_outText( SDL_Surface * screen, int x, int y, const char *s, unsigned int colorbank, int brightness );
|
|
void JE_outTextModify( SDL_Surface * screen, int x, int y, const char *s, unsigned int filter, unsigned int brightness, unsigned int font );
|
|
void JE_outTextAdjust( SDL_Surface * screen, int x, int y, const char *s, unsigned int filter, int brightness, unsigned int font, bool shadow );
|
|
void JE_outTextAndDarken( SDL_Surface * screen, int x, int y, const char *s, unsigned int colorbank, unsigned int brightness, unsigned int font );
|
|
|
|
void JE_updateWarning( SDL_Surface * screen );
|
|
void JE_outTextGlow( SDL_Surface * screen, int x, int y, const char *s );
|
|
|
|
#endif /* FONTHAND_H */
|
|
|