al_add_new_bitmap_flag(3alleg5)
β¨ al_add_new_bitmap_flag β¨
okay bestie, welcome to the Allegro 5 API manual page for al_add_new_bitmap_flag π this one's a lil baby function and honestly? iconic for it. no cap.
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
void al_add_new_bitmap_flag(int flag)
π DESCRIPTION π
so like. this is a convenience function π«Ά and the way it works is it does exactly the same thing as this:
al_set_new_bitmap_flags(al_get_new_bitmap_flags() | flag);
that's it. that's the whole vibe. it grabs whatever flags are already chillin' in the new-bitmap flag set, ORs your flag into them, and slaps the result back. one line of code, zero drama, main character energy β
like, if you were gonna write that whole thing out yourself every time? no. don't do that to yourself. just call this. periodt π
π₯ SEE ALSO π₯
fr fr go read those three next, they're the whole friend group π¦
Allegro reference manual π β that's the source + version vibe, bestie, and the date on the tin is the same as the title, al_add_new_bitmap_flag(3alleg5), both at the top and the bottom, so you know it's official π slay, bye! π
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- 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