Draws a non-interpolated (solid) triangle between the three points 0, 1 and 2
with the color
color .
The
bf
value is used to tell the routine not to draw
the triangle if it is facing the other way.
bf
tells
which way the triangle should be facing to be drawn.
since you will more than likely require both
combinations.
bf " = 0"
disables drawing when the points are arranged clockwise,
bf " = 1"
disables drawing when the points are arranged counter clockwise.
bf " = -1"
will probably always draw the triangle.
Beware, these functions are not a direct part of the svgalib library.
Instead their source is part of svgalib and can be found in the
threeDkit/
subdirectory of the original svgalib distribution. However, it is not
installed in the system by default, s.t. it is unclear where you can find it
if your svgalib was installed by some
linux distribution.
In case of any such problem, simply get an svgalib distribution from the net. Yo
don't need to install it. Just
make
in the
threeDkit/
subdirectory. As of this writing,
svgalib-1.2.12.tar.gz
is the latest version and can be retrieved by ftp from
sunsite.unc.edu at /pub/Linux/libs/graphics
and
tsx-11.mit.edu at /pub/linux/sources/libs
which will most probably be mirrored by a site close to you.
The functions are defined in the
tri.o and triangl.o
files (or their resp. sources) which you must link to your program.