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 π«Άπβ¨
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms