al_get_backbuffer(3alleg5)

al_get_backbuffer3alleg5

Allegro 5 api

Usage

#include <allegro5/allegro.h>
ALLEGRO_BITMAP *al_get_backbuffer(ALLEGRO_DISPLAY *display)

Overview

Return a special bitmap representing the back-buffer of the display.

Care should be taken when using the backbuffer bitmap (and its sub-bitmaps) as the source bitmap (e.g as the bitmap argument to al_draw_bitmap(3alleg5)). Only untransformed operations are hardware accelerated. These consist of al_draw_bitmap(3alleg5) and al_draw_bitmap_region(3alleg5) when the current transformation is the identity. If the transformation is not the identity, or some other drawing operation is used, the call will be routed through the memory bitmap routines, which are slow. If you need those operations to be accelerated, then first copy a region of the backbuffer into a temporary bitmap (via the al_draw_bitmap(3alleg5) and al_draw_bitmap_region(3alleg5)), and then use that temporary bitmap as the source bitmap.

Releases

6 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13

From allegro5-doc 2:5.2.10.1+dfsg-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.