is_screen_bitmap(3)

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

πŸ’– is_screen_bitmap β€” Allegro manual, section 3 πŸ’–

okay bestie, so this one is from the Allegro game programming library manual, section 3, and it's literally the tiniest little vibe check in the whole graphics toolbox. it's giving "am i the screen or not" energy and honestly? iconic. πŸŽ€


✨ SYNOPSIS ✨

#include <allegro.h>

int is_screen_bitmap(BITMAP *bmp);

like yes, that's the whole thing. one include, one function, one BITMAP *. she's lowkey minimal and I respect it πŸ’…


🌸 DESCRIPTION 🌸

so here's the tea: is_screen_bitmap returns TRUE if bmp is the screen bitmap, or a sub-bitmap of the screen. πŸ¦‹

that's it. that's the whole function. no cap.

like think about it β€” sometimes you've got a BITMAP * in your hand and you're just standing there like "…are you the screen or are you just some little guy living inside the screen?" and this function is the friend who tells you the truth. main character energy for real πŸ‘‘

🫢 heads up bestie: a sub-bitmap of the screen counts too, not just the screen itself. so don't come for her saying "but it's not literally the screen" β€” she already thought of that.

πŸ‘€ SEE ALSO πŸ‘€

  • screen(3) β€” the screen itself, the whole vibe
  • create_sub_bitmap(3) β€” how you make the lil sub-bitmaps that this function is so obsessed with

πŸŽ€ the sign-off πŸŽ€

that's the whole page bestie, you ate it fr fr πŸ’– this was Allegro version 4.4.3, and yeah, she's old but she's still slaying in section 3. go check if your bitmap is the screen. I believe in you. πŸŒˆβœ¨πŸ’œ

πŸ“¦ where this page comes from