al_set_new_bitmap_format(3alleg5)
π al_set_new_bitmap_format β Allegro 5 API π
okay bestie, welcome to the Allegro 5 API reference manual, this one's about picking a pixel format for the bitmaps you're about to make. it's giving glow-up-in-advance energy β¨
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
void al_set_new_bitmap_format(int format)
πΈ DESCRIPTION πΈ
so like, this one sets the pixel format β that's ALLEGRO_PIXEL_FORMAT(3alleg5) btw, go look it up iykyk β for newly created bitmaps. the ones you haven't even made yet. it's presetting the vibe before the party even starts π
the default format is 0, and that lil zero means the display driver gets to choose the best format for you. it's lowkey doing the most so you don't have to π«Ά
ngl bestie, set it before you create the bitmap. this is a before-the-fact situation, not a fix-it-later one π
π₯ SEE ALSO π₯
and that's the whole thing, periodt π this was al_set_new_bitmap_format(3alleg5), straight outta the Allegro reference manual β go forth and format ur pixels, bestie, ur literally the main character of this graphics pipeline ππΈπ¦
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms