1al_create_bitmap(3)        Library Functions Manual        al_create_bitmap(3)
2
3
4

NAME

6       al_create_bitmap
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              ALLEGRO_BITMAP *al_create_bitmap(int w, int h)
12

DESCRIPTION

14       Creates  a new bitmap using the bitmap format and flags for the current
15       thread.  Blitting between bitmaps of  differing  formats,  or  blitting
16       between memory bitmaps and display bitmaps may be slow.
17
18       Unless  you  set  the ALLEGRO_MEMORY_BITMAP flag, the bitmap is created
19       for the current display.  Blitting to another display may be slow.
20
21       If a display bitmap is created, there may be limitations on the allowed
22       dimensions.  For example a DirectX or OpenGL backend usually has a max‐
23       imum allowed texture size - so if bitmap creation fails for very  large
24       dimensions, you may want to re-try with a smaller bitmap.
25

SEE ALSO

27       al_set_new_bitmap_format(3),  al_set_new_bitmap_flags(3), al_clone_bit‐
28       map(3), al_create_sub_bitmap(3)
29
30
31
32Allegro reference manual                                   al_create_bitmap(3)
Impressum