logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

al_backup_dirty_bitmap - Allegro 5 API

Description

       On some platforms, notably Windows Direct3D and Android, textures may be lost at any time for events such
       as  display  resize  or  switching  out  of  the  app.   On  those platforms, bitmaps created without the
       ALLEGRO_NO_PRESERVE_TEXTURE flag automatically get backed up to system memory every time  al_flip_display
       is called.

       This  function  gives  you  more  control over when your bitmaps get backed up.  By calling this function
       after modifying a bitmap, you can make sure the bitmap is backed up right away instead of during the next
       flip.

Name

       al_backup_dirty_bitmap - Allegro 5 API

See Also

al_backup_dirty_bitmaps(3alleg5), al_create_bitmap(3alleg5)

Allegro reference manual                                                         al_backup_dirty_bitmap(3alleg5)

Since

       5.2.1

              [UnstableAPI]: This API is new and subject to refinement.

Synopsis

              #include <allegro5/allegro.h>

              void al_backup_dirty_bitmap(ALLEGRO_BITMAP *bitmap)

See Also