1vga_copytoplane(3) Svgalib User Manual vga_copytoplane(3)
2
3
4
6 vga_copytoplane - copy linear pixmap to some planes of VGA 16 color
7 mode video memory
8
10 #include <vga.h>
11
12 void vga_copytoplane(unsigned char *virtual, int pitch, int voffset,
13 int vpitch, int w, int h, int plane);
14
15
17 Similar to vga_copytoplanar16(3), but copies only a subset of the four
18 16-color mode planes (plane should be in the range 0 .. 15). The bits
19 set in plane select which of the four 16-color mode planes to modify.
20
21 Assumes pixels stored in consecutive bytes ranging from 0 to 15 in the
22 virtual screen.
23
24 Copies part of a linear virtual screen in system memory at *virtual to
25 VGA 16 mode video memory. pitch is the logical width of the virtual
26 screen (in pixels (which are one byte large)), voffset is the address
27 offset into video memory, vpitch is the logical scanline width of the
28 screen. (w, h) is the size of the area to copy in pixels (width must
29 be multiple of 4).
30
31
33 svgalib(7), vgagl(7), libvga.config(5), vga_accel(3), vga_copytopla‐
34 nar16(3), vga_copytoplanar256(3), vga_drawscanline(3), vga_drawscanseg‐
35 ment(3), vga_getmodeinfo(3), vga_setlogicalwidth(3), vga_imageblt(3),
36 vga_setmodeX(3),
37
39 This manual page was edited by Michael Weller <eowmob@exp-math.uni-
40 essen.de>. The exact source of the referenced function as well as of
41 the original documentation is unknown.
42
43 It is very likely that both are at least to some extent are due to Harm
44 Hanemaayer <H.Hanemaayer@inter.nl.net>.
45
46 Occasionally this might be wrong. I hereby asked to be excused by the
47 original author and will happily accept any additions or corrections to
48 this first version of the svgalib manual.
49
50
51
52Svgalib (>= 1.2.11) 27 July 1997 vga_copytoplane(3)