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_convert_memory_bitmaps - Allegro 5 API

Description

       If  you  create  a  bitmap  when  there  is  no  current display (for example because you have not called
       al_create_display(3alleg5) in the current thread) and are using the  ALLEGRO_CONVERT_BITMAP  bitmap  flag
       (which  is  set  by  default) then the bitmap will be created successfully, but as a memory bitmap.  This
       function converts all such bitmaps to proper video bitmaps belonging to the current display.

       Note that video bitmaps get automatically converted back to memory  bitmaps  when  the  last  display  is
       destroyed.

       This operation will preserve all bitmap flags except ALLEGRO_VIDEO_BITMAP and ALLEGRO_MEMORY_BITMAP.

Name

       al_convert_memory_bitmaps - Allegro 5 API

See Also

al_convert_bitmap(3alleg5), al_create_bitmap(3alleg5)

Allegro reference manual                                                      al_convert_memory_bitmaps(3alleg5)

Since

       5.2.0

Synopsis

              #include <allegro5/allegro.h>

              void al_convert_memory_bitmaps(void)

See Also