textout_right_ex(3alleg4)

✨ textout_right_ex ✨

okay bestie, welcome to the Allegro manual πŸ’– this one's called textout_right_ex and it lives in section 3alleg4 β€” it's the girl who writes a right aligned string onto a bitmap, and honestly? she's serving the Allegro game programming library realness πŸŽ€


🌸 SYNOPSIS 🌸

#include <allegro.h>

void textout_right_ex(BITMAP *bmp, const FONT *f, const char *s, int x,
int y, int color, int bg);

πŸ’… DESCRIPTION πŸ’…

so it's literally textout_ex() but make it right-aligned β€” the x coordinate is the right edge of the string instead of the left one. tiny change, huge slay, no cap 🫢

here's the vibe in code:

textout_right_ex(screen, font, "Look at this color!",
                 SCREEN_W - 10, 10, my_yellow, -1);

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, periodt πŸ’œ Allegro, version 4.4.3 β€” textout_right_ex(3alleg4) β€” mwah, go text your friends about it πŸ’–βœ¨πŸ¦‹