al_lock_bitmap_region_blocked(3alleg5)
π NAME π
al_lock_bitmap_region_blocked β bestie, this is the Allegro 5 API function that lets you lock just part of a bitmap, and it measures that part in blocks not pixels. iykyk π
β¨ SYNOPSIS β¨
okay so first you gotta pull in the header, no cap:
#include <allegro5/allegro.h>
and here's the signature, copy it exactly bestie, character for character π
ALLEGRO_LOCKED_REGION *al_lock_bitmap_region_blocked(ALLEGRO_BITMAP *bitmap,
int x_block, int y_block, int width_block, int height_block, int flags)
πΈ DESCRIPTION πΈ
So the vibe here is: it's literally al_lock_bitmap_blocked(3alleg5), same energy, same everything β except this one lets you lock a sub-region instead of the whole thing. and the reason you'd wanna do that? performance, obviously. slay. π
π«Ά but here's the plot twist that you NEED to clock: unlike al_lock_bitmap_region(3alleg5), the region you specify here is in terms of blocks, NOT pixels. do not mix those up bestie, that's the whole entire point of this function and mixing them is giving chaos π
β SINCE β
5.1.9 β she's been here a minute, iconic behavior π¦
π SEE ALSO π
al_lock_bitmap_region(3alleg5)β the pixel-flavored cousin πal_lock_bitmap_blocked(3alleg5)β the whole-bitmap version π
and that's the whole page bestie, mwah π this was the Allegro reference manual's take on al_lock_bitmap_region_blocked(3alleg5) β go lock that region, block by block, and don't forget: blocks, not pixels. periodt. πβ¨
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms