create_system_bitmap(3)
β¨ 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:
create_bitmap(3)create_bitmap_ex(3)create_video_bitmap(3)create_sub_bitmap(3)destroy_bitmap(3)is_system_bitmap(3)clear_bitmap(3)clear_to_color(3)exupdate(3)
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
- 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