1al_create_display(3) Library Functions Manual al_create_display(3)
2
3
4
6 al_create_display
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
17 explicitly. Creating a new display will automatically make it the
18 active one, with the backbuffer selected for drawing.
19
20 Returns NULL on error.
21
22 Each display has a distinct OpenGL rendering context associated with
23 it. See al_set_target_bitmap(3) for the discussion about rendering
24 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_window_position(3)
30
31
32
33Allegro reference manual al_create_display(3)