al_get_pixel_format_bits(3alleg5)
π al_get_pixel_format_bits π
okay bestie, so you're reading the al_get_pixel_format_bits page from the Allegro 5 manual (that's the 3alleg5 section, iykyk) β¨
β¨ NAME β¨
al_get_pixel_format_bits β literally the Allegro 5 API, that's the whole vibe πΈ
π SYNOPSIS π
#include <allegro5/allegro.h>
int al_get_pixel_format_bits(int format)
π¦ DESCRIPTION π¦
so here's the tea: this function hands you back the number of bits that a pixel of the given format occupies π
like, how many bits is one lil pixel taking up in that format you passed in? it tells you. that's it, that's the whole job.
but wait β plot twist π if you're dealing with blocked pixel formats (think compressed formats, the fancy ones), it doesn't give you a number at all. it just returns 0. so if you get a zero back, no, nothing's broken, that's just how blocked formats do π
π SEE ALSO π
that's the whole page, bestie, go forth and count your bits π§π
signing off from the Allegro reference manual β mwah, catch you on the next manpage ππ«Άπ
π¦ 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