projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20080802-1-src
[rocksndiamonds.git]
/
src
/
libgame
/
text.h
diff --git
a/src/libgame/text.h
b/src/libgame/text.h
index fd1e8c57d558a1efa501c4b3470183e666930fde..146648a311febdce38fcad7249dc607ce96c74ce 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. */
@@
-52,9
+61,12
@@
/* font structure definitions */
/* font structure definitions */
-void InitFontInfo(struct FontBitmapInfo *, int, int (*function)(int));
+void InitFontInfo(struct FontBitmapInfo *, int,
+ int (*function1)(int), int (*function2)(char *));
void FreeFontInfo(struct FontBitmapInfo *);
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);
@@
-62,9
+74,22
@@
int getTextWidth(char *, int);
void getFontCharSource(int, char, Bitmap **, int *, int *);
void DrawInitText(char *, int, int);
void getFontCharSource(int, char, Bitmap **, int *, int *);
void DrawInitText(char *, int, int);
+void DrawInitTextIfNeeded(char *, int, int);
+void DrawInitTextExt(char *, int, int, boolean);
void DrawTextF(int, int, int, char *, ...);
void DrawTextFCentered(int, int, char *, ...);
void DrawTextF(int, int, int, char *, ...);
void DrawTextFCentered(int, int, char *, ...);
+void DrawTextS(int, int, int, char *);
+void DrawTextSCentered(int, int, char *);
+void DrawTextCentered(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 DrawText(int, int, char *, int);
void DrawTextExt(DrawBuffer *, int, int, char *, int, int);
+char *GetTextBufferFromFile(char *, int);
+int DrawTextBuffer(int, int, char *, int, int, int, int, int, boolean, boolean,
+ boolean);
+int DrawTextFile(int, int, char *, int, int, int, int, int, boolean, boolean,
+ boolean);
+
#endif /* TEXT_H */
#endif /* TEXT_H */