1al_flip_display(3) Library Functions Manual al_flip_display(3)
2
3
4
6 al_flip_display
7
9 #include <allegro5/allegro.h>
10
11 void al_flip_display(void)
12
14 Copies or updates the front and back buffers so that what has been
15 drawn previously on the currently selected display becomes visible on
16 screen. Pointers to the special back and front buffer bitmaps remain
17 valid and retain their semantics as back and front buffers respec‐
18 tively, although their contents may have changed.
19
20 Several display options change how this function behaves:
21
22 With ALLEGRO_SINGLE_BUFFER, no flipping is done. You still have to
23 call this function to display graphics, depending on how the used
24 graphics system works.
25
26 The ALLEGRO_SWAP_METHOD option may have additional information about
27 what kind of operation is used internally to flip the front and back
28 buffers.
29
30 If ALLEGRO_VSYNC is 1, this function will force waiting for vsync. If
31 ALLEGRO_VSYNC is 2, this function will not wait for vsync. With many
32 drivers the vsync behavior is controlled by the user and not the appli‐
33 cation, and ALLEGRO_VSYNC will not be set; in this case al_flip_dis‐
34 play(3) will wait for vsync depending on the settings set in the sys‐
35 tem's graphics preferences.
36
38 al_set_new_display_flags(3), al_set_new_display_option(3)
39
40
41
42Allegro reference manual al_flip_display(3)