destroy_bitmap(3alleg4)
π destroy_bitmap β the manual page, but make it cute π
okay bestie, gather round, we're talking about destroy_bitmap from the Allegro game programming library (that's 3alleg4 to the cool kids, iykyk). this one's short and sweet but she is IMPORTANT, because she's the one who cleans up after you. β¨
β¨ NAME β¨
destroy_bitmap β destroys any type of created bitmap. fr fr, any kind. Allegro game programming library energy only. π
πΈ SYNOPSIS πΈ
#include <allegro.h>
void destroy_bitmap(BITMAP *bitmap);
π¦ DESCRIPTION π¦
so the vibe is: you made a bitmap. you're done with it. now you gotta let her go. π
destroy_bitmap destroys a memory bitmap, a sub-bitmap, a video memory bitmap, or a system bitmap when you are finished with it. literally any of them. she does not discriminate, she just cleans up. iconic behaviour honestly.
and the bestie clause: if you pass a NULL pointer, this function won't do anything. no crash, no drama, no nothing. she just shrugs and moves on. lowkey the most emotionally stable function in the whole library. π«Ά
β οΈ but okay listen β see above for the restrictions as to when you are allowed to destroy the various types of bitmaps. do NOT skip that part. the rules exist for a reason and ignoring them is not it. π
π¨ AND THE BIG ONE: the bitmap must not have a mouse cursor shown on it at the time it is destroyed. no cursor, no destroy. that's the rule. periodt. π
π SEE ALSO π
create_bitmap(3alleg4)β where the whole situationship begins πΌload_bitmap(3alleg4)β the other way you end up with one of these on your hands πshow_mouse(3alleg4)β go look at this before you destroy anything, bestie, i'm begging π
and that's the page!! written up for the <strong>Allegro</strong> manual, <strong>version 4.4.3</strong>, and yeah this was destroy_bitmap(3alleg4) β go forth, free your memory, slay responsibly. πβ¨π
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms