1al_draw_text(3) Library Functions Manual al_draw_text(3)
2
3
4
6 al_draw_text
7
9 #include <allegro5/allegro_font.h>
10
11 void al_draw_text(const ALLEGRO_FONT *font,
12 ALLEGRO_COLOR color, float x, float y, int flags,
13 char const *text)
14
16 Writes the 0-terminated string text onto bmp at position x, y, using
17 the specified font.
18
19 The flags parameter can be 0 or one of the following flags:
20
21 · ALLEGRO_ALIGN_LEFT - Draw the text left-aligned (same as 0).
22
23 · ALLEGRO_ALIGN_CENTRE - Draw the text centered around the given posi‐
24 tion.
25
26 · ALLEGRO_ALIGN_RIGHT - Draw the text right-aligned to the given posi‐
27 tion.
28
30 al_draw_ustr(3), al_draw_textf(3), al_draw_justified_text(3)
31
32
33
34Allegro reference manual al_draw_text(3)