al_get_pixel_block_size(3alleg5)

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

✨ NAME ✨

al_get_pixel_block_size β€” bestie this is literally from the Allegro 5 API πŸ’–

So you're out here poking at pixels in the alleg5 manual (that's the manual name, iykyk) and you found this lil cutie. Let me tell you everything, no cap.


🌸 SYNOPSIS 🌸

#include <allegro5/allegro.h>

int al_get_pixel_block_size(int format)

Like, that's the whole vibe. You give it a format, it gives you back an int. Simple. Iconic. Slay. πŸ‘‘


πŸŽ€ DESCRIPTION πŸŽ€

Okay so here's the tea, bestie: this function returns the number of bytes that a block of pixels with this format occupies. That's it. That's the whole function. πŸ¦‹

You hand it a pixel format, and it tells you how many bytes one block of pixels in that format takes up. Very "what's the byte count, queen" energy. πŸ’…

It's giving "I just need to know how much space this thing needs" and honestly? Respect. 🫢


⭐ SINCE ⭐

This one's been around since 5.1.9. Vintage but still thriving. 🌈


πŸ’œ SEE ALSO πŸ’œ

Go be nosy, bestie, these are all connected:


And that's the whole page, fr fr. This was brought to you by the Allegro reference manual β€” shoutout to that whole source, and to al_get_pixel_block_size(3alleg5) living her best life in the footer where the page name goes. Periodt. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from