AL_CONVERT_MEMORY_BITMAPS(3)
β¨ 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