1textprintf_ex(3) Allegro manual textprintf_ex(3)
2
3
4
6 textprintf_ex - Formatted output of a string. Allegro game programming
7 library.
8
10 #include <allegro.h>
11
12
13 void textprintf_ex(BITMAP *bmp, const FONT *f, int x, int y, int color,
14 int bg, const char *fmt, ...);
15
17 Formatted text output, using a printf() style format string. Due to an
18 internal limitation, this function can't be used for extremely long
19 texts. If you happen to reach this limit, you can work around it by
20 using uszprintf() and textout_ex(), which don't have any. Example:
21
22 int player_score;
23 ...
24 textprintf_ex(screen, font, 10, 10, makecol(255, 100, 200),
25 -1, "Score: %d", player_score);
26
27
29 font(3), textout_ex(3), textprintf_centre_ex(3),
30 textprintf_right_ex(3), textprintf_justify_ex(3), text_height(3),
31 text_length(3), uszprintf(3)
32
33
34
35Allegro version 4.2.2 textprintf_ex(3)