al_convert_bitmap(3alleg5)
π al_convert_bitmap π
okay bestie, welcome to the Allegro 5 API glow-up zone β¨ this one's from the Allegro reference manual, and it's literally about giving your bitmap a whole new vibe without losing its lore π¦
β¨ NAME β¨
al_convert_bitmap β the Allegro 5 API function that does a full makeover on a bitmap π
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
void al_convert_bitmap(ALLEGRO_BITMAP *bitmap)
π DESCRIPTION π
So here's the tea, bestie π«: al_convert_bitmap converts the bitmap to the current bitmap flags and format. Think of it like the bitmap walked into the salon looking one way and walked out looking completely different β except it's exactly as if it was created fresh with al_create_bitmap(3alleg5), but it retains its contents. Same pixels, new era. no cap π―
And it's not just the one bitmap getting the treatment either:
- All of this bitmap's sub-bitmaps get converted too π
- If the new bitmap type is memory, then the bitmap's projection bitmap gets reset to be orthographic π
- If this bitmap is itself a sub-bitmap, then it, its parent, and all the sibling sub-bitmaps are also converted β the whole friend group is coming along, fr fr π«Ά
not me casually rewriting an entire family tree of bitmaps π it's giving main character energy and honestly? obsessed.
β SINCE β
5.1.0 β she's been iconic since 5.1.0, periodt π
π SEE ALSO π
al_create_bitmap(3alleg5)al_set_new_bitmap_format(3alleg5)al_set_new_bitmap_flags(3alleg5)al_clone_bitmap(3alleg5)
k bye bestie, go convert something β¨ this was the Allegro reference manual serving al_convert_bitmap(3alleg5) realness πππ¦π
π¦ 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