al_flip_display - Man Page

Allegro 5 API

Synopsis

#include <allegro5/allegro.h>

void al_flip_display(void)

Description

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:

See Also

al_set_new_display_flags(3), al_set_new_display_option(3)

Referenced By

al_set_new_display_option(3), al_update_display_region(3), al_wait_for_vsync(3).

Allegro reference manual