create_system_bitmap(3)

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

✨ create_system_bitmap(3) ✨

okay bestie, so this is a page from the Allegro manual β€” yes, the Allegro game programming library β€” and it's about a lil function called create_system_bitmap. sit down, hydrate, let's go 🫢


πŸ’– NAME πŸ’–

create_system_bitmap β€” creates a system memory bitmap. Allegro game programming library. that's it, that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

#include <allegro.h>

BITMAP *create_system_bitmap(int width, int height);

like, you include the header, you call the thing, the thing gives you a bitmap. iconic behaviour honestly πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

So. create_system_bitmap allocates a system memory bitmap of the size you asked for β€” that's width by height, no cap, exactly what you passed in.

and ngl, if you wanna know how a system bitmap stacks up against all the other flavours of bitmap out there, plus all the other specific little details πŸ‘€ β€” the manual says to go read the introduction of this chapter. that's where the comparison lives, bestie. it's giving required reading. πŸ“šβœ¨


πŸ’œ RETURN VALUE πŸ’œ

  • βœ… on success you get a pointer to the bitmap
  • πŸ’€ otherwise you get NULL β€” so pls check it, don't just rawdog the pointer
⚠️ ok this is the important one: remember to destroy this bitmap before any subsequent call to set_gfx_mode(). like, actually remember. do it before. this is not a drill, this is the manual yelling at you gently 🚨😭

πŸ”₯ SEE ALSO πŸ”₯

the whole squad, fr fr β€” go read these too:


and that's the whole page, no cap ✨ this lil masterpiece comes to you from Allegro, version 4.4.3 β€” yeah, the manpage footer date situation is a mystery even to me, but the version is right there and it's 4.4.3, periodt πŸ’– go forth and allocate responsibly, bestie πŸ§šβ€β™€οΈπŸŒΈ

πŸ“¦ where this page comes from