al_add_new_bitmap_flag(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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