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

NAME

6       textout_centre_ex  - Writes a centered string on a bitmap. Allegro game
7       programming library.
8

SYNOPSIS

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

DESCRIPTION

17       Like textout_ex(), but interprets the x coordinate as the centre rather
18       than the left edge of the string. Example:
19
20          /* Important texts go in the middle. */
21          width = text_length("GAME OVER");
22          textout_centre_ex(screen, font, "GAME OVER",
23                            SCREEN_W / 2, SCREEN_H / 2,
24                            makecol(255, 0, 0), makecol(0, 0, 0));
25
26

SEE ALSO

28       textout_ex(3), textprintf_centre_ex(3)
29
30
31
32Allegro                          version 4.2.2            textout_centre_ex(3)
Impressum