File: al_get_backbuffer.3

package info (click to toggle)
allegro5 2%3A5.0.10-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 14,856 kB
  • ctags: 15,948
  • sloc: ansic: 87,540; cpp: 9,693; objc: 3,491; python: 2,057; sh: 829; makefile: 93; perl: 37; pascal: 24
file content (30 lines) | stat: -rw-r--r-- 1,033 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.TH al_get_backbuffer 3 "" "Allegro reference manual"
.SH NAME
.PP
al_get_backbuffer \- Allegro 5 API
.SH SYNOPSIS
.IP
.nf
\f[C]
#include\ <allegro5/allegro.h>

ALLEGRO_BITMAP\ *al_get_backbuffer(ALLEGRO_DISPLAY\ *display)
\f[]
.fi
.SH DESCRIPTION
.PP
Return a special bitmap representing the back\-buffer of the display.
.PP
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(3)).
Only untransformed operations are hardware accelerated.
This consists of al_draw_bitmap(3) and al_draw_bitmap_region(3) when the
current transformation is the identity.
If the tranformation 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(3) and
al_draw_bitmap_region(3)), and then use that temporary bitmap as the
source bitmap.