1gl_setcontextvga(3)           Svgalib User Manual          gl_setcontextvga(3)
2
3
4

NAME

6       gl_setcontextvga - set the context to the physical screen
7
8

SYNOPSIS

10       #include <vgagl.h>
11
12       int gl_setcontextvga(int mode);
13
14

DESCRIPTION

16       Set  the  graphics  context  to  the  physical screen of a vga mode (as
17       defined in vga_setmode(3)).  The mode must be set  with  vga_setmode(3)
18       prior  to using any of the drawing functions.  vgagl does not take care
19       of that.
20
21       The function returns 0 for success and non-zero if the mode is not sup‐
22       ported by the hardware.
23
24       The only thing you can do with a planar (mode X-like) 256 color mode is
25       aligned gl_putbox, and use it as a target for gl_copyscreen.
26
27       In all of the svga modes this program makes a description  of  the  vga
28       mode  available  to  the  vgagl functions.  The 256 color svgamodes are
29       handled properly by this program.
30
31

SEE ALSO

33       svgalib(7), vgagl(7), svgalib.conf(5),  threedkit(7),  testgl(1),  cur‐
34       rentcontext(3),     gl_allocatecontext(3),    gl_copyboxfromcontext(3),
35       gl_copyboxtocontext(3),      gl_copyscreen(3),       gl_freecontext(3),
36       gl_line(3), gl_getcontext(3), gl_setcontext(3), gl_setcontextheight(3),
37       gl_setcontextvgavirtual(3),   gl_setcontextvirtual(3),    gl_setcontex‐
38       twidth(3).
39
40

AUTHOR

42       This  manual  page  was  edited by Michael Weller <eowmob@exp-math.uni-
43       essen.de>. The exact source of the referenced demo as well  as  of  the
44       original  documentation  is  unknown.   This  page  was modified by Don
45       Secrest <secrest@uiuc.edu>.
46
47       It is very likely that both are at least to some extent are due to Harm
48       Hanemaayer <H.Hanemaayer@inter.nl.net>.
49
50       Occasionally  this  might be wrong. I hereby asked to be excused by the
51       original author and will happily accept any additions or corrections to
52       this first version of the svgalib manual.
53
54
55
56Svgalib (>= 1.2.11)               21 Aug 1999              gl_setcontextvga(3)
Impressum