al_draw_ustr(3alleg5)
π al_draw_ustr π
okay so bestie, welcome to the Allegro 5 API reference manual, and today's main character is al_draw_ustr β she's from the allegro5 manual and she's here to put text on your screen. periodt. π
β¨ NAME β¨
al_draw_ustr β draw some text, but make it USTR-flavoured. that's the whole vibe.
πΈ SYNOPSIS πΈ
#include <allegro5/allegro_font.h>
void al_draw_ustr(const ALLEGRO_FONT *font,
ALLEGRO_COLOR color, float x, float y, int flags,
const ALLEGRO_USTR *ustr)
likeβ¦ look at her. so clean. so iconic. π«Ά
π¦ DESCRIPTION π¦
So basically, this is literally the same energy as al_draw_text(3alleg5) β same drawing, same everything β except the text you hand her is passed as an ALLEGRO_USTR instead of a NUL-terminated char array. that's it. that's the difference. and honestly? it's giving flexibility. β¨
ngl if you already know al_draw_text you already know this one, iykyk. π
π SEE ALSO π
go read those too bestie, they're all part of the same little friend group π
and that's the whole page!! this came straight out of the Allegro reference manual, for the page al_draw_ustr(3alleg5) β mwah, love u, go draw some text ππ¦π
π¦ where this page comes from
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms