ALLEGRO_LOCKED_REGION
Allegro 5 API
- Provided by: allegro5-doc (Version: 2:5.2.6.0-1)
- Source: allegro5
- Report a bug
Allegro 5 API
#include <allegro5/allegro.h>
typedef struct ALLEGRO_LOCKED_REGION ALLEGRO_LOCKED_REGION;
Users who wish to manually edit or read from a bitmap are required to lock it first. The ALLEGRO_LOCKED_REGION structure represents the locked region of the bitmap. This call will work with any bitmap, including memory bitmaps.
typedef struct ALLEGRO_LOCKED_REGION {
void *data;
int format;
int pitch;
int pixel_size;
} ALLEGRO_LOCKED_REGION;
al_lock_bitmap(3alleg5), al_lock_bitmap_region(3alleg5), al_unlock_bitmap(3alleg5), ALLEGRO_PIXEL_FORMAT(3alleg5)