al_load_bitmap(3)

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

✨ al_load_bitmap(3) ✨

πŸŽ€ NAME πŸŽ€

al_load_bitmap β€” Allegro 5 API. okay so this page lives in the Library Functions Manual, and it's your girl's guide to loading a bitmap image without the chaos πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

the formal fit check:

#include <allegro5/allegro.h>

ALLEGRO_BITMAP *al_load_bitmap(const char *filename)

πŸ’– DESCRIPTION πŸ’–

okay bestie, here's the whole vibe: al_load_bitmap loads an image file into a new ALLEGRO_BITMAP(3). ✨ The file type is determined by al_identify_bitmap(3), using the extension as a fallback in case identification is not possible. iykyk.

Returns NULL on error. no cap, that's the important bit 😭

This is literally the same as calling al_load_bitmap_flags(3) with a flags parameter of 0. same energy, zero extra flags.

⚠️ Note, bestie: the core Allegro library does not support any image file formats by default. You must use the allegro_image addon, or register your own format handler. that's not optional, that's the whole plot πŸ”₯

🌈 SEE ALSO 🌈

go peek at these icons too πŸ‘€


xoxo πŸ’Œ from the Allegro reference manual, al_load_bitmap(3) β€” that's the whole page, periodt. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά

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