destroy_bitmap(3)
π destroy_bitmap(3) π
okay bestie, we're in the Allegro manual and today's main character is destroy_bitmap(3) β the Allegro game programming library's official "we're done here, clean up your mess" function. β¨
πΈ NAME πΈ
destroy_bitmap β destroys literally any type of created bitmap. That's it, that's the job. Allegro game programming library energy through and through. π
β¨ SYNOPSIS β¨
#include <allegro.h>
void destroy_bitmap(BITMAP *bitmap);
look at her. one line. no return value. she simply does. π
π¦ DESCRIPTION π¦
So here's the tea, bestie: when you're finished with a bitmap, you call this. It destroys a memory bitmap, a sub-bitmap, a video memory bitmap, or a system bitmap β all of them, no discrimination, every type gets the same loving farewell. π
If you pass a NULL pointer, this function won't do anything. Like, at all. It just vibes. No crash, no drama, nothing. π«Ά
Now β the important part, and I need you to actually listen β see above for the restrictions as to when you are allowed to destroy the various types of bitmaps. Different bitmap types have different rules about when it's legal to send them off, and this function is not the one making those rules. So check before you yeet. π
π¨ also: the bitmap must not have a mouse cursor shown on it at the time it is destroyed. Like, at all. If there's a cursor on it, that's a problem. Handle that first, bestie, I'm begging. π
π SEE ALSO π
create_bitmap(3)β the one that made it πΌload_bitmap(3)β the one that brought it in from a file πshow_mouse(3)β the one that put a cursor on it, which you need to deal with before you destroy it, per the vibe check above π
and that's the whole page, periodt. π
Allegro, version 4.4.3 β yeah she's a classic, iconic, no notes. And the page footer says destroy_bitmap(3) on the right, so like, it's the manual page for destroy_bitmap(3), obviously, iykyk. π§π Mwah, go free your memory, bestie. π₯π
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms