1textprintf_centre_ex(3) Allegro manual textprintf_centre_ex(3)
2
3
4
6 textprintf_centre_ex - Formatted centered output of a string. Allegro
7 game programming library.
8
10 #include <allegro.h>
11
12
13 void textprintf_centre_ex(BITMAP *bmp, const FONT *f, int x, int y, int
14 color, int bg, const char *fmt, ...);
15
17 Like textprintf_ex(), but interprets the x coordinate as the centre
18 rather than the left edge of the string. This function shares the text
19 length limitation of textprintf_ex(). Example:
20
21 textprintf_centre_ex(screen, font, SCREEN_W / 2, 120,
22 makecol(0, 100, 243), -1,
23 "Your best score so far was %d!",
24 total_max_points);
25
26
28 textprintf_ex(3), textout_centre_ex(3)
29
30
31
32Allegro version 4.4.3 textprintf_centre_ex(3)