1al_create_display(3) al_create_display(3)
2
3
4
6 al_create_display - Allegro 5 API
7
9 #include <allegro5/allegro.h>
10
11 ALLEGRO_DISPLAY *al_create_display(int w, int h)
12
14 Create a display, or window, with the specified dimensions. The param‐
15 eters of the display are determined by the last calls to
16 al_set_new_display_*. Default parameters are used if none are set ex‐
17 plicitly. Creating a new display will automatically make it the active
18 one, with the backbuffer selected for drawing.
19
20 Returns NULL on error.
21
22 Each display that uses OpenGL as a backend has a distinct OpenGL ren‐
23 dering context associated with it. See al_set_target_bitmap(3) for the
24 discussion about rendering contexts.
25
27 al_set_new_display_flags(3), al_set_new_display_option(3),
28 al_set_new_display_refresh_rate(3), al_set_new_display_adapter(3),
29 al_set_new_window_title(3) al_set_window_position(3)
30
31
32
33Allegro reference manual al_create_display(3)