al_set_new_bitmap_format(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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