is_linear_bitmap(3)
π 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
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms