al_draw_textf
void al_draw_textf(const ALLEGRO_FONT *font, ALLEGRO_COLOR color,
float x, float y, int flags,
const char *format, ...)
Introduced in 5.0.0
Formatted text output, using a printf() style format string, all parameters have the same meaning as with al_draw_text otherwise.
See also: al_draw_text, al_draw_ustr
Examples: ex_blit, ex_clip, ex_disable_screensaver, ex_display_options, ex_draw, ex_draw_bitmap, ex_filter, ex_font, ex_fs_window, ex_gldepth, ex_logo, ex_mouse_events, ex_native_filechooser, ex_premulalpha, ex_prim, ex_stream_seek, ex_ttf, ex_vsync, ex_warp_mouse, ex_windows
Most helpful discussions:
- Items stack in a RPG Inventory system (1)
- Drawing string from a variable to the screen? (1)
- Drawing text from variable in Allegro5 (1)
- drawing integer values... (1)
- A5 : timer issue
- Mouse Lag / Not Keyboard
- Game Lag Windows to Linux - FPS issue?
- Odd event.mouse.x & y values
- Mouse Activity Question
- al_draw_textf causing crash
Other recent discussions:
- I am looking for correct detailed instructions how to build Allegro....
- Same code - slow on Windows, fast on Linux - timer fires too slow?
- ALLEGRO_LOCKED_REGION confusion
- letters are rendered in their seperated form, this may require glyph hook maybe?
- How do i print numbers
- Weird flex with my Bitmaps on my Screen
- Input routine works, then does not
- Timing of enemy arrival in shmup
- [A5] How to optimize al_draw_textf
- Quick Question about MSAA