al_create_display(3)
πΈ NAME πΈ
al_create_display β Allegro 5 API, bestie!! literally the display-creating icon of the Allegro reference manual.
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
ALLEGRO_DISPLAY *al_create_display(int w, int h)
π DESCRIPTION π
okay so this one creates 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. periodt.
Creating a new display will automatically make it the active one, with the backbuffer selected for drawing. main character energy fr fr. π
Returns NULL on error. π not the error NULL, bestie.
Each display that uses OpenGL as a backend has a distinct OpenGL rendering context associated with it. See al_set_target_bitmap(3) for the discussion about rendering contexts. iykyk, that's where the context talk lives. π¦
π SEE ALSO π
go read these too, bestie:
al_set_new_display_flags(3), al_set_new_display_option(3), al_set_new_display_refresh_rate(3), al_set_new_display_adapter(3), al_set_new_window_title(3) al_set_window_position(3)
mwah π this page is from the Allegro reference manual, and thereβs no date on the footer, so consider this your cute lil no-date sign-off. stay slay, bestie! π«Άβ¨
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms