Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
al_get_backbuffer(3)	    Library Functions Manual	    al_get_backbuffer(3)

NAME
     al_get_backbuffer - Allegro 5 API

SYNOPSIS
	    #include <allegro5/allegro.h>

	    ALLEGRO_BITMAP *al_get_backbuffer(ALLEGRO_DISPLAY *display)

DESCRIPTION
     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(3)).
     Only untransformed operations are hardware accelerated.  These  consist  of
     al_draw_bitmap(3) and al_draw_bitmap_region(3) when the current transforma-
     tion  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 accel-
     erated, 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.

Allegro reference manual				    al_get_backbuffer(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=al_get_backbuffer&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help