.\" Automatically generated by Pandoc 2.17.1.1 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "al_create_display" "3alleg5" "" "Allegro reference manual" "" .hy .SH NAME .PP al_create_display - Allegro 5 API .SH SYNOPSIS .IP .nf \f[C] #include ALLEGRO_DISPLAY *al_create_display(int w, int h) \f[R] .fi .SH DESCRIPTION .PP Create a display, or window, with the specified dimensions. The parameters of the display are determined by the last calls to al_set_new_display_*. Default parameters are used if none are set explicitly. Creating a new display will automatically make it the active one, with the backbuffer selected for drawing. .PP Returns NULL on error. .PP Each display that uses OpenGL as a backend has a distinct OpenGL rendering context associated with it. See al_set_target_bitmap(3alleg5) for the discussion about rendering contexts. .SH SEE ALSO .PP al_set_new_display_flags(3alleg5), al_set_new_display_option(3alleg5), al_set_new_display_refresh_rate(3alleg5), al_set_new_display_adapter(3alleg5), al_set_new_window_title(3alleg5) al_set_window_position(3alleg5)