1textprintf_right_ex(3)          Allegro manual          textprintf_right_ex(3)
2
3
4

NAME

6       textprintf_right_ex - Formatted right aligned output of a string. Alle‐
7       gro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       void textprintf_right_ex(BITMAP *bmp, const FONT *f, int x,  y,  color,
14       bg, const char *fmt, ...);
15

DESCRIPTION

17       Like  textprintf_ex(),  but  interprets  the  x coordinate as the right
18       rather than the left edge of the string. This function shares the  text
19       length limitation of textprintf_ex(). Example:
20
21          textprintf_right_ex(screen, font, SCREEN_W - 10, 10,
22                              makecol(200, 200, 20), -1,
23                              "%d bullets left", player_ammo);
24
25

SEE ALSO

27       textprintf_ex(3), textout_right_ex(3), exmouse(3)
28
29
30
31Allegro                          version 4.4.2          textprintf_right_ex(3)
Impressum