is_linear_bitmap(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ’– is_linear_bitmap β€” Allegro manual, bestie edition πŸ’–

okay so real talk, this one lives in the Allegro game programming library, and its whole job is telling you if a bitmap is linear. that's it. that's the gig. let's get into it πŸ¦‹


✨ NAME ✨

is_linear_bitmap β€” tells you if a bitmap is linear, in the Allegro game programming library πŸ’…


✨ SYNOPSIS ✨

#include <allegro.h>

int is_linear_bitmap(BITMAP *bmp);

✨ DESCRIPTION ✨

so you hand it a bmp, and it hands you back TRUE if that bitmap is a linear bitmap β€” meaning a bitmap you can access linearly within each scanline. like, lowkey the classic examples: a memory bitmap, the DOS VGA or SVGA screen, Windows bitmaps, etc. you know the vibe 😌

and the way that linear bitmaps are the ones you can use with _putpixel(), _getpixel(), bmp_write_line(), and bmp_read_line()?? iconic. those functions are literally built for them 🫢

now for the lore πŸŽ€ historically there were only two bitmap flavors in Allegro: linear and planar. so is_linear_bitmap() is actually just an alias for !is_planar_bitmap(). no cap. it's giving "same function, different font" πŸ’€


✨ SEE ALSO ✨


and that's the whole page bestie, go forth and vibe check your bitmaps πŸ‘‘

Allegro, version 4.4.3 🌸 β€” mwah, tysm for reading, ilysm, see u in the next manpage πŸ’œπŸ’–βœ¨

πŸ“¦ where this page comes from