al_get_backbuffer
ALLEGRO_BITMAP *al_get_backbuffer(ALLEGRO_DISPLAY *display)
Introduced in 5.0.0
Return a special bitmap representing the back-buffer of the display.
Care should be taken when using the backbuffer bitmap (and its sub-bitmaps) as the source bitmap (e.g as the bitmap argument to al_draw_bitmap). Only untransformed operations are hardware accelerated. This consists of al_draw_bitmap and al_draw_bitmap_region when the current transformation is the identity. If the tranformation is not the identity, or some other drawing operation is used, the call will be routed through the memory bitmap routines, which are slow. If you need those operations to be accelerated, then first copy a region of the backbuffer into a temporary bitmap (via the al_draw_bitmap and al_draw_bitmap_region), and then use that temporary bitmap as the source bitmap.
Examples: ex_blend_test, ex_drawpixels, ex_lockbitmap, ex_multiwin, ex_subbitmap, ex_transform
Most helpful discussions:
- Problem toggling between Window and Fullscreen (1)
- c++ Allegro 5 - drawing bitmap region over backgound
- Setting up projection and camera matrices correctly for bitmaps in 3D
- upgrading tank war codebase to allegro 5
- save display window as image(png,jpg)
- Font loading crashing with Allegro 5.2
- Inconstistent joystick event delay
- Display stops updating if I change the backbuffer-- What am I doing wrong?
- Performance issue regarding al_put_pixel and raycasting
- Just bored... ;)
Other recent discussions:
- Shader Problems - GLSL sampler3d() - 5.1.9
- Image transition too slow !
- Blit to Android display
- Problem with events
- Crash in al_set_target_bitmap
- Allegro window resize causing crash in Windows 10
- Blit bitmap to display
- [OpenGL] Cube drawing overlaps itself... but not others.
- al_draw_soft_line
- al_set_target_bitmap