1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
.TH al_lock_bitmap_region 3 "" "Allegro reference manual"
.SH NAME
.PP
al_lock_bitmap_region \- Allegro 5 API
.SH SYNOPSIS
.IP
.nf
\f[C]
#include\ <allegro5/allegro.h>
ALLEGRO_LOCKED_REGION\ *al_lock_bitmap_region(ALLEGRO_BITMAP\ *bitmap,
\ \ \ int\ x,\ int\ y,\ int\ width,\ int\ height,\ int\ format,\ int\ flags)
\f[]
.fi
.SH DESCRIPTION
.PP
Like al_lock_bitmap(3), but only locks a specific area of the bitmap.
If the bitmap is a display bitmap, only that area of the texture will be
updated when it is unlocked.
Locking only the region you indend to modify will be faster than locking
the whole bitmap.
.SH SEE ALSO
.PP
ALLEGRO_LOCKED_REGION(3), ALLEGRO_PIXEL_FORMAT(3), al_unlock_bitmap(3)
|