al_create_display(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

🌸 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