AL_CONVERT_MEMORY_BITMAPS(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

✨ NAME ✨

Okay so this is the al_convert_memory_bitmaps(3) page, straight out of the Library Functions Manual β€” the Allegro 5 API corner of it, specifically. She’s the little cleanup bestie for your bitmaps πŸ’–

πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro5/allegro.h>

void al_convert_memory_bitmaps(void)

πŸ’… DESCRIPTION πŸ’…

Picture this, bestie: you create a bitmap while there is no current display β€” maybe because you haven’t called al_create_display(3) in the current thread yet 😭 β€” and you’re using the ALLEGRO_CONVERT_BITMAP bitmap flag, which is set by default. The bitmap gets created successfully, no cap, but it’s a memory bitmap at that point.

That’s literally where al_convert_memory_bitmaps() comes in: it converts all such bitmaps into proper video bitmaps belonging to the current display. slay πŸ’…

Little note straight from the page: video bitmaps get automatically converted back to memory bitmaps when the last display is destroyed. So don’t act surprised πŸ’€

And this operation will preserve all bitmap flags except ALLEGRO_VIDEO_BITMAP and ALLEGRO_MEMORY_BITMAP. Those two? Not preserved, periodt.

🌸 SINCE 🌸

5.2.0 β€” she’s been here since then, iconic 🫢

πŸ¦‹ SEE ALSO πŸ¦‹


Source: Allegro reference manual πŸ’– Version: 5.2.0, aka the SINCE era. Date: the page didn’t give one, so we’re calling this sign-off timeless, bestie πŸŒˆπŸŽ€

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms