create_system_bitmap(3alleg4)

✨ create_system_bitmap ✨

okay bestie, welcome to the Allegro manual πŸ’– this one's called create_system_bitmap, and it's living in section 3alleg4. yes we're doing a whole manpage, and yes it's gonna be cute AND correct. let's go πŸ¦‹


🌸 NAME 🌸

create_system_bitmap β€” creates a system memory bitmap. it's part of the Allegro game programming library, iykyk πŸŽ€


✨ SYNOPSIS ✨

#include <allegro.h>

BITMAP *create_system_bitmap(int width, int height);

πŸ’… DESCRIPTION πŸ’…

so basically, this function allocates a system memory bitmap of the size you asked for. that's it, that's the vibe ✨

fr fr though, if you wanna know how this stacks up against all the other types of bitmaps and get the specific deets, go read the introduction of this chapter. the manpage said so, not me πŸ™ˆ


🫢 RETURN VALUE 🫢

on success it hands you back a pointer to the bitmap. if it doesn't work out? you get NULL. no cap. 😭

⚠️ okay this part is IMPORTANT bestie β€” remember to destroy this bitmap before any subsequent call to set_gfx_mode(). like, before. not after. before. the way that matters is insane πŸ’€

🌈 SEE ALSO 🌈

go check these out too, they're all iconic πŸ‘‘


and that's the whole page, bestie!! this was Allegro version 4.4.3, and the page is create_system_bitmap(3alleg4) β€” main character energy, honestly. slay, go make some bitmaps πŸ’–βœ¨πŸŽ€