poll_scroll(3alleg4)
π poll_scroll β the Allegro manual, but make it a group chat π
okay bestie so this is a page from the Allegro manual (you know, 3alleg4, the Allegro game programming library situation) and today's main character is a lil function called poll_scroll. she's tiny. she's important. let's get into it π«Ά
β¨ NAME β¨
poll_scroll β checks the status of a scroll request with triple buffering. it's part of the Allegro game programming library, and yes she ate π
πΈ SYNOPSIS πΈ
#include <allegro.h>
int poll_scroll();
that's it. that's the whole thing. no arguments, no drama, just vibes β¨
π¦ DESCRIPTION π¦
so here's the tea, bestie: this function is for triple buffering. what it does is check the status of a hardware scroll that was already kicked off earlier by the request_scroll() routine.
basically you asked for a scroll, and now you're like "heyβ¦ did that happen yet??" and poll_scroll() is the friend who tells you. it's giving project manager energy fr fr π
π RETURN VALUE π
she returns a number, and the number means things:
- non-zero β it is still waiting to take place. like, hold on, it's coming, don't rush her π
- zero β the requested scroll has already happened. slay, it's done, periodt π
π SEE ALSO π
go read these next, iykwim:
and that's the whole page, bestie!! π this lil legend lives in Allegro version 4.4.3, and yeah the page is literally just called poll_scroll(3alleg4). go forth and poll responsibly πβ¨ππ¦πΈ
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms