request_scroll(3)
β¨ NAME β¨
okay so bestie, this is the Allegro manual, and request_scroll(3) is the function that queues a hardware scroll request with triple buffering. Allegro game programming library, periodt. π
π SYNOPSIS π
the exact vibe:
#include <allegro.h>
int request_scroll(int x, int y);
π¦ DESCRIPTION π¦
request_scroll is for triple buffering. It requests a hardware scroll to the position you pass in, but it returns immediately instead of waiting for a retrace. The scroll will then happen during the next vertical retrace. You can keep running other code in the meantime, no cap, and use poll_scroll() to detect when the flip has actually taken place. β¨
Triple buffering is only possible with certain drivers, so look at the GFX_CAN_TRIPLE_BUFFER bit in the gfx_capabilities flag to see if it will work with the current driver. π
π RETURN VALUE π
It returns zero on success, non-zero otherwise. that's the whole tea. π
πΈ SEE ALSO πΈ
sending love from the Allegro manual, version 4.4.3 πβ¨π«Ά
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms