al_backup_dirty_bitmap(3)

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

πŸ’Ύ al_backup_dirty_bitmap(3) β€” the Allegro 5 API glow-up ✨

Okay bestie, so this one's from the Library Functions Manual and it's literally the Allegro 5 API. Let's get into it 🫢


🌸 NAME 🌸

al_backup_dirty_bitmap β€” Allegro 5 API, the "save my texture before it gets yeeted" function πŸ’…


✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

void al_backup_dirty_bitmap(ALLEGRO_BITMAP *bitmap)

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea β˜•: on some platforms β€” notably Windows Direct3D and Android β€” textures can be lost at any time 😭 for events like display resize or switching out of the app. Like, they're just gone, no cap.

On those platforms, bitmaps created without the ALLEGRO_NO_PRESERVE_TEXTURE flag automatically get backed up to system memory every single time al_flip_display is called. Iconic behaviour, honestly πŸ‘‘

This function gives you more control over when your bitmaps get backed up πŸ’–. By calling this function after modifying a bitmap, you can make sure the bitmap is backed up right away instead of during the next flip. It's giving "I'll do it myself" energy, and we love that for you.


πŸŽ€ SINCE πŸŽ€

5.2.1 β€” a whole era πŸ’«

⚠️ [Unstable API]: This API is new and subject to refinement. So like, it works, but it might change on you β€” proceed with your eyes open, bestie πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯


And that's the whole page, periodt 🌈. This slay of a manual page comes courtesy of the Allegro reference manual, dated with all the love from the fine folks who write these things β€” go forth and back up your textures, 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