is_linear_bitmap(3alleg4)

✨ is_linear_bitmap ✨

okay bestie so this is a page from the Allegro manual, the Allegro game programming library, and today's main character is is_linear_bitmap β€” she tells you if a bitmap is linear πŸ’…


🌸 SYNOPSIS 🌸

#include <allegro.h>

int is_linear_bitmap(BITMAP *bmp);

πŸ¦‹ DESCRIPTION πŸ¦‹

So basically this function returns TRUE if bmp is a linear bitmap. And what's a linear bitmap, you ask? It's a bitmap you can access linearly within each scanline β€” think a memory bitmap, the DOS VGA or SVGA screen, Windows bitmaps, etc. πŸŽ€

Linear bitmaps can be used with the _putpixel(), _getpixel(), bmp_write_line(), and bmp_read_line() functions. no cap, that's the whole point of being linear 😌

Now for the lore: historically there were only linear and planar bitmaps in Allegro, so is_linear_bitmap() is actually just an alias for !is_planar_bitmap(). the way that it's literally just the opposite of her sister function πŸ’€


πŸ’– SEE ALSO πŸ’–


and that's the whole page, bestie β€” she's short, she's sweet, she's iconic 🌈

this one's from Allegro version 4.4.3 β€” mwah, sending you kisses, go write some linear pixels πŸ«ΆπŸ’–βœ¨