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

NAME

6       gl_striangle - draw a solid colored triangle
7
8

SYNOPSIS

10       #include <triangle.h>
11
12       void  gl_striangle(int x0, int y0, int x1, int y1 , int x2, int y2, int
13       color, int bf);
14
15

DESCRIPTION

17       Draws a non-interpolated (solid) triangle between the three points 0, 1
18       and 2 with the color color.
19
20       The bf value is used to tell the routine not to draw the triangle if it
21       is facing the other way.  bf tells which way  the  triangle  should  be
22       facing  to be drawn.  since you will more than likely require both com‐
23       binations.
24
25       bf = 0 disables drawing when the points are arranged clockwise, bf =  1
26       disables  drawing when the points are arranged counter clockwise.  bf =
27       -1 will probably always draw the triangle.
28
29       Beware, these functions are not a direct part of the  svgalib  library.
30       Instead their source is part of svgalib and can be found in the threeD‐
31       kit/ subdirectory of the original svgalib distribution. However, it  is
32       not  installed  in  the system by default, s.t. it is unclear where you
33       can find it if your svgalib was installed by some linux distribution.
34
35       In case of any such problem, simply get an  svgalib  distribution  from
36       the  net. Yo don't need to install it. Just make in the threeDkit/ sub‐
37       directory. As of this writing, svgalib-1.2.12.tar.gz is the latest ver‐
38       sion   and   can   be   retrieved   by   ftp  from  sunsite.unc.edu  at
39       /pub/Linux/libs/graphics and tsx-11.mit.edu at  /pub/linux/sources/libs
40       which will most probably be mirrored by a site close to you.
41
42       The  functions  are  defined in the tri.o and triangl.o files (or their
43       resp. sources) which you must link to your program.
44
45

SEE ALSO

47       vgagl(7), svgalib(7), threedkit(7),  gl_swtriangle(3),  gl_triangle(3),
48       gl_trigetcolorlookup(3),     gl_trisetcolorlookup(3),    gl_trisetdraw‐
49       point(3), gl_wtriangle(3), plane(6), wrapdemo(6).
50
51

AUTHOR

53       This manual page was edited  by  Michael  Weller  <eowmob@exp-math.uni-
54       essen.de>. The demos, the initial documentation and the whole threedkit
55       stuff was done by Paul Sheer <psheer@icon.co.za>.
56
57       Paper mail:
58              Paul Sheer
59              P O BOX 890507
60              Lyndhurst
61              Johannesburg 2106
62              South Africa
63
64       Donations (by check or postal  order)  will  be  appreciated  and  will
65       encourage  further  development  of  this  software.  However  this  is
66       strictly on a voluntary basis where this software falls under  the  GNU
67       LIBRARY GENERAL PUBLIC LICENSE.
68
69
70
71Svgalib (>= 1.2.11)               2 Aug 1997                   gl_striangle(3)
Impressum