poll_scroll(3)
β¨ poll_scroll β bestie's guide to checking on your scroll β¨
okay so this is a page from the Allegro manual, and it's all about poll_scroll, a lil function that checks whether your scroll request actually went through when you're doing triple buffering. it's giving "are we there yet" but for hardware. let's get into it π
πΈ NAME πΈ
poll_scroll β checks the status of a scroll request with triple buffering. it lives in the Allegro game programming library, bestie π
π SYNOPSIS π
#include <allegro.h>
int poll_scroll();
π DESCRIPTION π
so, this function is for triple buffering. what it does is check the status of a hardware scroll that you already kicked off earlier with the request_scroll() routine. like, you asked for the scroll, and now poll_scroll() is the friend who goes "heyβ¦ did that happen yet? π"
π¦ RETURN VALUE π¦
- non-zero β it's still waiting for the scroll to take place. patience, queen π§
- zero β the requested scroll has already happened. slay, it's done β¨
π SEE ALSO π
ngl this one is short and sweet, but that's the whole vibe β it's a status checker, not a whole saga π
anyway, that's the page! this was pulled from the Allegro manual, version 4.4.3 β shoutout to the Allegro girlies for keeping it iconic since forever π«Ά no cap, go check your scrolls, bestie πππ¦
π¦ 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