1request_scroll(3) Allegro manual request_scroll(3)
2
3
4
6 request_scroll - Queues a hardware scroll request with triple buffer‐
7 ing. Allegro game programming library.
8
10 #include <allegro.h>
11
12
13 int request_scroll(int x, int y);
14
16 This function is used for triple buffering. It requests a hardware
17 scroll to the specified position, but returns immediately rather than
18 waiting for a retrace. The scroll will then take place during the next
19 vertical retrace, but you can carry on running other code in the mean‐
20 time and use the poll_scroll() routine to detect when the flip has
21 actually taken place.
22
23 Triple buffering is only possible with certain drivers: you can look at
24 the GFX_CAN_TRIPLE_BUFFER bit in the gfx_capabilities flag to see if it
25 will work with the current driver.
26
28 This function returns zero on success, non-zero otherwise.
29
30
32 poll_scroll(3), request_video_bitmap(3), gfx_capabilities(3),
33 scroll_screen(3)
34
35
36
37Allegro version 4.2.2 request_scroll(3)