textout_right_ex(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

✨ NAME ✨

hey bestie πŸ‘‹ welcome to the textout_right_ex(3) page from the Allegro manual πŸ’–

textout_right_ex β€” writes a right aligned string on a bitmap. it's part of the Allegro game programming library, no cap ✨


🌸 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 πŸ’…

okay so literally it's like textout_ex(), but the way it handles the x coordinate? iconic β€” that's the right edge of the string, not the left edge. periodt πŸ’…

example, bestie:

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

πŸ¦‹ SEE ALSO πŸ¦‹


and that's the whole vibe πŸ’– Allegro version 4.4.3, textout_right_ex(3), mwah πŸ’‹

πŸ“¦ where this page comes from