gui_set_screen(3alleg4)

gui_set_screen3alleg4

Changes the bitmap surface gui routines draw to. allegro game programming library.

Usage

#include <allegro.h>

void gui_set_screen(BITMAP *bmp);

Overview

This function can be used to change the bitmap surface the GUI routines draw to. This can be useful if you are using a double buffering or page flipping system. Passing NULL will cause the default surface (screen) to be used again. Example:

   BITMAP *page[2];
   /* Allocate two pages of video memory */
   page[0] = create_video_bitmap(SCREEN_W, SCREEN_H);
   page[1] = create_video_bitmap(SCREEN_W, SCREEN_H);
   /* Page flip */
   show_video_bitmap(page[0]);
   gui_set_screen(page[0]);

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–10
  2. 11–13

From allegro4-doc 2:4.4.3.1-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.