lock_bitmap(3alleg4)

✨ lock_bitmap ✨

okay so bestie, this is a page from the Allegro manual (yes, the Allegro game programming library, we love her πŸ’–), and today's main character is lock_bitmap. it's giving "niche but powerful", fr fr.


🌸 NAME 🌸

lock_bitmap β€” locks the memory used by a bitmap. Allegro game programming library. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro.h>

void lock_bitmap(BITMAP *bitmap);

✨ DESCRIPTION ✨

Under DOS, this locks all the memory used by a bitmap. πŸ”’

ngl, you don't normally need to call this function unless you are doing very weird things in your program. like, truly unhinged behaviour. if you're just vibing and drawing sprites like a normal person, you can lowkey ignore this one. but if you ARE doing the weird stuff, she's here for you. periodt. πŸ‘‘

no cap: the "very weird things" warning is real β€” this isn't your everyday function, so don't just sprinkle it around for the aesthetic.

kisses, bestie 🫢 this has been the Allegro manual, version 4.4.3 β€” go slay your game dev era πŸ’–βœ¨πŸŽ€