polf(3) — Unix Programmer’s Manual
NAME
polf - draw a filled convex polygon on the screen
SYNOPSIS
C
polf(n, parray)
long n;
Coord parray[][3];
polfi(n, parray)
long n;
Icoord parray[][3];
polf2(n, parray)
long n;
Coord parray[][2];
polf2i(n, parray)
long n;
Icoord parray[][2];
FORTRAN
subroutine polf(n, parray)
integer n
real parray(3,n)
subroutine polfi(n, parray)
integer n
integer parray(3,n)
subroutine polf2(n, parray)
integer n
real parray(2,n)
subroutine polf2i(n, parray)
integer n
integer parray(2,n)
Pascal
procedure polf(n: integer; var parray: Coord3array);
procedure polfi(n: integer; var parray: Icoord3array);
procedure polf2(n: integer; var parray: Coord2array);
procedure polf2i(n: integer; var parray: Icoord2array);
DESCRIPTION
Polf fills polygonal areas using the current texture pattern, color, and writemask. Polf takes two arguments: an array of points and the number of points in that array. Polygons are represented as arrays of points. All polygons described must be convex. No errors are reported if concave polygons are specified; the system does not check for them. However, they produce unpredictable results. The first and last points are automatically connected to close a polygon. The points can be expressed as integers or real numbers, in 2D or 3D space. Two-dimensional polygons are drawn with z=0.
SEE ALSO
poly, rect, rectf
Silicon Graphics — R1c