AL_UPDATE_DISPLAY_REGION(3)
okay bestie, welcome to the al_update_display_region(3) page from the Library Functions Manual β Allegro 5 API, full Allegro reference manual energy, all of it. Letβs get into it π«Ά
π NAME π
al_update_display_region β Allegro 5 API. Thatβs the whole name moment, no cap β¨
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
void al_update_display_region(int x, int y, int width, int height)
π¦ DESCRIPTION π¦
Okay so picture al_flip_display(3) but make it do a targeted update: al_update_display_region does the same thing as al_flip_display(3), except it tries to update only the region you specify with x, y, width, and height. π
Hereβs the tea: with many drivers this is not possible, but for some drivers it can improve performance. If this is not supported, the function falls back to the behavior of al_flip_display(3). No dramatic failure, just plan B π«Ά
You can query support for this function using al_get_display_option(display, ALLEGRO_UPDATE_DISPLAY_REGION). Thatβs the vibe check β
π₯ SEE ALSO π₯
okay thatβs the page, bestie π«Ά This oneβs footer situation is the Allegro reference manual and al_update_display_region(3); thereβs no date printed in the footer on this page, so Iβm not inventing one β timeless icon behavior π
β¨
π¦ 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