1gl_setcontextvgavirtual(3) Svgalib User Manual gl_setcontextvgavirtual(3)
2
3
4
6 gl_setcontextvgavirtual - set the context to a virtual mode
7
8
10 #include <vgagl.h>
11
12 int gl_setcontextvgavirtual(int mode);
13
14
16 Allocate a virtual screen in system memory identical to the graphics
17 mode (as defined in vga_setmode(3)), and make that the current graphics
18 context.
19
20 The function returns 0 for success and non-zero if the mode is not sup‐
21 ported by the hardware.
22
23 The only thing you can do with a planar (mode X-like) 256 color mode is
24 aligned gl_putbox, and use it as a target for gl_copyscreen.
25
26
28 svgalib(7), vgagl(7), svgalib.conf(5), threedkit(7), testgl(1), cur‐
29 rentcontext(3), gl_allocatecontext(3), gl_copyboxfromcontext(3),
30 gl_copyboxtocontext(3), gl_copyscreen(3), gl_freecontext(3), gl_getcon‐
31 text(3), gl_setcontext(3), gl_setcontextheight(3), gl_setcontextvga(3),
32 gl_setcontextvirtual(3), gl_setcontextwidth(3).
33
34
36 This manual page was edited by Michael Weller <eowmob@exp-math.uni-
37 essen.de>. The exact source of the referenced demo as well as of the
38 original documentation is unknown.
39
40 It is very likely that both are at least to some extent are due to Harm
41 Hanemaayer <H.Hanemaayer@inter.nl.net>.
42
43 Occasionally this might be wrong. I hereby asked to be excused by the
44 original author and will happily accept any additions or corrections to
45 this first version of the svgalib manual.
46
47
48
49Svgalib (>= 1.2.11) 2 Aug 1997 gl_setcontextvgavirtual(3)