1vga_setreadpage(3) Svgalib User Manual vga_setreadpage(3)
2
3
4
6 vga_setreadpage - set the 64K SVGA page number
7
9 #include <vga.h>
10
11 void vga_setreadpage(int page);
12
13
15 Usually SVGA cards have more than the 64K memory which suffice for an
16 ordinary VGA. However, the memory window mapped at vga_getgraphmem(3)
17 is only 64K bytes large. vga_setreadpage() selects the page-th 64K
18 memory chunk to be visible for reads at position vga_getgraphmem(3).
19
20 vga_setwritepage(3) allows a different 64K memory chunk to be modified
21 by writes to this memory window. This is a very useful feature for
22 screen to screen pixmap copies. However, not all cards support this in
23 all graphics mode. Check vga_modeinfo(3) for availability. Esp. as this
24 feature can also not be used when in background mode.
25
26 Of course, this function must be used in conjunction with
27 vga_setwritepage(3) but may not be used in conjunction with vga_set‐
28 page(3).
29
30
32 svgalib(7), vgagl(7), libvga.config(5), fun(6), vgatest(6),
33 vga_claimvideomemory(3), vga_getgraphmem(3), vga_modeinfo(3), vga_set‐
34 page(3), vga_setwritepage(3), vga_setlinearaddressing(3)
35
37 This manual page was edited by Michael Weller <eowmob@exp-math.uni-
38 essen.de>. The exact source of the referenced function as well as of
39 the original documentation is unknown.
40
41 It is very likely that both are at least to some extent are due to Harm
42 Hanemaayer <H.Hanemaayer@inter.nl.net>.
43
44 Occasionally this might be wrong. I hereby asked to be excused by the
45 original author and will happily accept any additions or corrections to
46 this first version of the svgalib manual.
47
48
49
50Svgalib (>= 1.2.11) 27 July 1997 vga_setreadpage(3)