is_planar_bitmap(3alleg4)

✨ is_planar_bitmap ✨

okay bestie, welcome to the Allegro manual πŸ’– this one's a lil function from the Allegro game programming library and it is, lowkey, so simple. it just tells you if a bitmap is a planar screen bitmap. that's it. that's the whole job. she's a one-question queen πŸ‘‘


🌸 SYNOPSIS 🌸

#include <allegro.h>

int is_planar_bitmap(BITMAP *bmp);

like look at her. one include, one function, one arg. iconic behavior fr fr 🫢


πŸ’… DESCRIPTION πŸ’…

so here's the tea πŸ“ β€” is_planar_bitmap returns TRUE if bmp is a planar screen bitmap, meaning a mode-X or Xtended mode screen bitmap. and if it's not? you get not-TRUE. that's the vibe check and she passed it βœ…

no side quests, no weird state, just a yes-or-no about your bitmap's whole layout situation. main character energy honestly πŸ‘‘

heads up bestie: TRUE is what she hands back β€” so if you're out here comparing against 1 with a whole attitude, just use the macro, iykyk 😭

πŸ¦‹ SEE ALSO πŸ¦‹


k that's the whole page, no cap. this little gem shipped with Allegro, version 4.4.3 πŸŽ€ go forth and interrogate your bitmaps, bestie β€” mwah πŸ’‹βœ¨