al_convert_bitmap(3)

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

πŸ’– NAME πŸ’–

al_convert_bitmap β€” Allegro 5 API. (Yes bestie, this page is from the Library Functions Manual, and we’re doing bitmap glow-ups today.)

✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

void al_convert_bitmap(ALLEGRO_BITMAP *bitmap)

πŸŽ€ DESCRIPTION πŸŽ€

Okay so al_convert_bitmap converts the bitmap to the current bitmap flags and format. The vibe is: it’s as if the bitmap was created anew with al_create_bitmap(3), but it retains its contents. All of this bitmap’s sub-bitmaps are also converted. If the new bitmap type is memory, then the bitmap’s projection bitmap is reset to be orthographic.

If this bitmap is a sub-bitmap, then it, its parent and all the sibling sub-bitmaps are also converted. No cap. πŸ’…

🌸 SINCE 🌸

5.1.0

πŸ¦‹ SEE ALSO πŸ¦‹


Signed off with the footer energy: Allegro reference manual Β· al_convert_bitmap(3) πŸ’–βœ¨

πŸ“¦ 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