1al_is_compatible_bitmap(3)                          al_is_compatible_bitmap(3)
2
3
4

NAME

6       al_is_compatible_bitmap - Allegro 5 API
7

SYNOPSIS

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

DESCRIPTION

14       D3D  and  OpenGL allow sharing a texture in a way so it can be used for
15       multiple windows.  Each ALLEGRO_BITMAP(3) created  with  al_create_bit‐
16       map(3) however is usually tied to a single ALLEGRO_DISPLAY.  This func‐
17       tion can be used to know if the bitmap is  compatible  with  the  given
18       display,  even  if  it is a different display to the one it was created
19       with.  It returns true if the  bitmap  is  compatible  (things  like  a
20       cached  texture  version  can be used) and false otherwise (blitting in
21       the current display will be slow).
22
23       The only time this function is useful is if you are using multiple win‐
24       dows and need accelerated blitting of the same bitmaps to both.
25
26       Returns  true  if  the  bitmap  is compatible with the current display,
27       false otherwise.  If there is no current display, false is returned.
28
29
30
31Allegro reference manual                            al_is_compatible_bitmap(3)
Impressum