1al_backup_dirty_bitmap(3)                            al_backup_dirty_bitmap(3)
2
3
4

NAME

6       al_backup_dirty_bitmap - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              void al_backup_dirty_bitmap(ALLEGRO_BITMAP *bitmap)
12

DESCRIPTION

14       On  some  platforms, notably Windows Direct3D and Android, textures may
15       be lost at any time for events such as display resize or switching  out
16       of  the  app.   On  those  platforms, bitmaps created without the ALLE‐
17       GRO_NO_PRESERVE_TEXTURE flag automatically get backed up to system mem‐
18       ory every time al_flip_display is called.
19
20       This  function gives you more control over when your bitmaps get backed
21       up.  By calling this function after modifying a bitmap,  you  can  make
22       sure  the  bitmap  is  backed  up right away instead of during the next
23       flip.
24

SINCE

26       5.2.1
27
28              [Unstable API]: This API is new and subject to refinement.
29

SEE ALSO

31       al_backup_dirty_bitmaps(3), al_create_bitmap(3)
32
33
34
35Allegro reference manual                             al_backup_dirty_bitmap(3)
Impressum