1gui_set_screen(3)               Allegro manual               gui_set_screen(3)
2
3
4

NAME

6       gui_set_screen - Changes the bitmap surface GUI routines draw to. Alle‐
7       gro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       void gui_set_screen(BITMAP *bmp);
14

DESCRIPTION

16       This function can be used to change the bitmap surface the GUI routines
17       draw to. This can be useful if you are using a double buffering or page
18       flipping system. Passing NULL will cause the default  surface  (screen)
19       to be used again. Example:
20
21          BITMAP *page[2];
22
23          /* Allocate two pages of video memory */
24          page[0] = create_video_bitmap(SCREEN_W, SCREEN_H);
25          page[1] = create_video_bitmap(SCREEN_W, SCREEN_H);
26
27          /* Page flip */
28          show_video_bitmap(page[0]);
29          gui_set_screen(page[0]);
30
31
32

SEE ALSO

34       gui_get_screen(3)
35
36
37
38Allegro                          version 4.4.3               gui_set_screen(3)
Impressum