AL_SET_NEW_BITMAP_FORMAT(3)
β¨ al_set_new_bitmap_format β¨
okay bestie, so this is from the Allegro 5 API fam β a little function that sets the vibe for every new bitmap you make from here on out π
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
void al_set_new_bitmap_format(int format)
π¦ DESCRIPTION π¦
So basically, this one sets the pixel format β that's ALLEGRO_PIXEL_FORMAT(3), iykyk β for bitmaps that get created fresh from now on β¨
The default format is 0, and ngl that 0 is lowkey main character energy: it literally means the display driver will pick the best format for you π no cap, it just handles it.
π‘ it's giving "set it and forget it" β you call this once and every new bitmap after that inherits the vibe π
π SEE ALSO π
ALLEGRO_PIXEL_FORMAT(3)β the format fam itself π«Άal_get_new_bitmap_format(3)β check what you set πal_get_bitmap_format(3)β peek at an actual bitmap's format β
and that's the whole page, bestie β slay π β¨
this iconic little entry comes to you courtesy of the Allegro reference manual, version vibes of al_set_new_bitmap_format(3) β see you in the next one, mwah ππ
π¦ 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