al_convert_bitmap(3alleg5)

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

πŸ’– 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 🌈


k bye bestie, go convert something ✨ this was the Allegro reference manual serving al_convert_bitmap(3alleg5) realness πŸŽ€πŸ’–πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from