projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20070109-1-src
[rocksndiamonds.git]
/
src
/
libgame
/
text.h
diff --git
a/src/libgame/text.h
b/src/libgame/text.h
index 611cf2be7a5fdfed184e7742a2fc1081d6128355..b1f4c91575219b0153e8dba24d7638c5bcbd3983 100644
(file)
--- a/
src/libgame/text.h
+++ b/
src/libgame/text.h
@@
-1,7
+1,7
@@
/***********************************************************
* Artsoft Retro-Game Library *
*----------------------------------------------------------*
/***********************************************************
* Artsoft Retro-Game Library *
*----------------------------------------------------------*
-* (c) 1994-200
2
Artsoft Entertainment *
+* (c) 1994-200
6
Artsoft Entertainment *
* Holger Schemel *
* Detmolder Strasse 189 *
* 33604 Bielefeld *
* Holger Schemel *
* Detmolder Strasse 189 *
* 33604 Bielefeld *
@@
-34,6
+34,12
@@
/* special character mapping for default fonts */
#define FONT_ASCII_CURSOR ((char)160)
/* special character mapping for default fonts */
#define FONT_ASCII_CURSOR ((char)160)
+#define FONT_ASCII_BUTTON ((char)128)
+#define FONT_ASCII_UP ((char)129)
+#define FONT_ASCII_DOWN ((char)130)
+#define FONT_ASCII_LEFT ((char)'<')
+#define FONT_ASCII_RIGHT ((char)'>')
+
#define MAP_FONT_ASCII(c) ((c) >= 'a' && (c) <= 'z' ? 'A' + (c) - 'a' : \
(c) == '©' ? 96 : \
(c) == 'ä' || (c) == 'Ä' ? 97 : \
#define MAP_FONT_ASCII(c) ((c) >= 'a' && (c) <= 'z' ? 'A' + (c) - 'a' : \
(c) == '©' ? 96 : \
(c) == 'ä' || (c) == 'Ä' ? 97 : \
@@
-42,6
+48,9
@@
(c) == '°' ? 100 : \
(c) == '®' ? 101 : \
(c) == FONT_ASCII_CURSOR ? 102 : \
(c) == '°' ? 100 : \
(c) == '®' ? 101 : \
(c) == FONT_ASCII_CURSOR ? 102 : \
+ (c) == FONT_ASCII_BUTTON ? 109 : \
+ (c) == FONT_ASCII_UP ? 110 : \
+ (c) == FONT_ASCII_DOWN ? 111 : \
(c))
/* 64 regular ordered ASCII characters, 6 special characters, 1 cursor char. */
(c))
/* 64 regular ordered ASCII characters, 6 special characters, 1 cursor char. */
@@
-55,6
+64,8
@@
void InitFontInfo(struct FontBitmapInfo *, int, int (*function)(int));
void FreeFontInfo(struct FontBitmapInfo *);
void InitFontInfo(struct FontBitmapInfo *, int, int (*function)(int));
void FreeFontInfo(struct FontBitmapInfo *);
+struct FontBitmapInfo *getFontBitmapInfo(int);
+
int getFontWidth(int);
int getFontHeight(int);
int getTextWidth(char *, int);
int getFontWidth(int);
int getFontHeight(int);
int getTextWidth(char *, int);
@@
-66,8
+77,13
@@
void DrawTextF(int, int, int, char *, ...);
void DrawTextFCentered(int, int, char *, ...);
void DrawTextS(int, int, int, char *);
void DrawTextSCentered(int, int, char *);
void DrawTextFCentered(int, int, char *, ...);
void DrawTextS(int, int, int, char *);
void DrawTextSCentered(int, int, char *);
+void DrawTextSAligned(int, int, char *, int, int);
+void DrawTextAligned(int, int, char *, int, int);
void DrawText(int, int, char *, int);
void DrawTextExt(DrawBuffer *, int, int, char *, int, int);
void DrawTextToTextArea(int, int, char *, int, int, int, int, int);
void DrawText(int, int, char *, int);
void DrawTextExt(DrawBuffer *, int, int, char *, int, int);
void DrawTextToTextArea(int, int, char *, int, int, int, int, int);
+boolean RenderLineToBuffer(char **, char *, int *, boolean, int);
+void DrawTextWrapped(int, int, char *, int, int, int);
+int DrawTextFromFile(int, int, char *, int, int, int, boolean);
#endif /* TEXT_H */
#endif /* TEXT_H */