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

NAME

6       gl_line - draw a line
7
8

SYNOPSIS

10       #include <vgagl.h>
11
12       void gl_line(int x1, int y1, int x2, int y2, int c);
13
14

DESCRIPTION

16       Draw a line from point (x1, y1) to (x2, y2) inclusively in color c.
17
18       You should not assume that the same drawing trajectory is used when you
19       exchange start and end points.
20
21       To use this program one first sets up a mode with a regular vga_setmode
22       call  and vga_setpage(0), with possibly a vga_setlinearaddressing call.
23       Then a call to gl_setcontextvga(mode) is made.  This makes the informa‐
24       tion about the mode available to gl_line.
25
26       The  pixels  are  placed  directly into video memory using inline coded
27       commands.
28
29

SEE ALSO

31       svgalib(7),   vgagl(7),   svgalib.conf(5),   threedkit(7),   testgl(1),
32       plane(1),  wrapdemo(1),  gl_circle(3),  gl_clearscreen(3), gl_hline(3),
33       gl_setpixel(3), gl_setpixelrgb(3), gl_setcontextvga(3).
34
35

AUTHOR

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