al_flip_display(3alleg5) | al_flip_display(3alleg5) |
al_flip_display - Allegro 5 API
#include <allegro5/allegro.h> void al_flip_display(void)
Copies or updates the front and back buffers so that what has been drawn previously on the currently selected display becomes visible on screen. Pointers to the special back buffer bitmap remain valid and retain their semantics as the back buffer, although the contents may have changed.
Note: If not using the ALLEGRO_SINGLE_BUFFER option, you typically want to redraw every pixel of the backbuffer bitmap to avoid uninitialized memory artifacts.
Several display options change how this function behaves:
al_set_new_display_flags(3alleg5), al_set_new_display_option(3alleg5)
Allegro reference manual |