al_unlock_bitmap
void al_unlock_bitmap(ALLEGRO_BITMAP *bitmap)
Introduced in 5.0.0
Unlock a previously locked bitmap or bitmap region. If the bitmap is a display bitmap, the texture will be updated to match the system memory copy (unless it was locked read only).
See also: al_lock_bitmap, al_lock_bitmap_region
Examples: ex_blend, ex_blit, ex_clip, ex_draw, ex_drawpixels, ex_filter, ex_lockbitmap, ex_logo, ex_premulalpha, ex_threads2
Most helpful discussions:
- [A5] Reading from bitmaps is amazingly slow (1)
- Convert *bitmap to char buffer
- Bitmap usage with memset and memcpy
- Allegro5 and OpenGL. Problem with drawing Allegro primitives
- Multiple layer scrolling problem
- You're such a disappointment.
- using a photo to floofill a bitmap
- Problems porting to linux. Video crashes
- Allegro color bitmap
- Same code - slow on Windows, fast on Linux - timer fires too slow?
Other recent discussions:
- ALLEGRO_LOCKED_REGION confusion
- Steam Client interference / OpenGL
- Learning shaders, one and for all.
- ALLEGRO_THREAD
- Using ESCAPI with Allegro
- Suggestions for optimization
- Direct access to a pointer to bitmap
- [ Allegro 5.2.11 ] al_put_pixel and al_get_pixel very very slow compared to A4 !
- Locking bitmap is slower than not (?)
- Performance issue regarding al_put_pixel and raycasting