al_draw_ustr(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 5 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– 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