1al_lock_bitmap_region(3)   Library Functions Manual   al_lock_bitmap_region(3)
2
3
4

NAME

6       al_lock_bitmap_region
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              ALLEGRO_LOCKED_REGION *al_lock_bitmap_region(ALLEGRO_BITMAP *bitmap,
12                 int x, int y, int width, int height, int format, int flags)
13

DESCRIPTION

15       Like  al_lock_bitmap(3),  but only locks a specific area of the bitmap.
16       If the bitmap is a display bitmap, only that area of the  texture  will
17       be  updated when it is unlocked.  Locking only the region you indend to
18       modify will be faster than locking the whole bitmap.
19

SEE ALSO

21       ALLEGRO_LOCKED_REGION(3), ALLEGRO_PIXEL_FORMAT(3), al_unlock_bitmap(3)
22
23
24
25Allegro reference manual                              al_lock_bitmap_region(3)
Impressum