polf() — Silicon Graphics
NAME
polf - draws a filled polygon
SPECIFICATION
C
polf(n, parray)
long n;
Coord parray[][3];
polfi(n, parray)
long n;
Icoord parray[][3];
polfs(n, parray)
long n;
Scoord parray[][3];
polf2(n, parray)
long n;
Coord parray[][2];
polf2i(n, parray)
long n;
Icoord parray[][2];
polf2s(n, parray)
long n;
Scoord parray[][2];
FORTRAN
subroutine polf(n, parray)
integer*4 n
real parray(3,n)
subroutine polfi(n, parray)
integer*4 n
integer*4 parray(3,n)
subroutine polfs(n, parray)
integer*4 n
integer*2 parray(3,n)
subroutine polf2(n, parray)
integer*4 n
real parray(2,n)
subroutine polf2i(n, parray)
integer*4 n
integer*4 parray(2,n)
subroutine polf2s(n, parray)
integer*4 n
integer*2 parray(2,n)
Pascal
procedure polf(n: longint; var parray: Coord);
procedure polfi(n: longint; var parray: Icoord);
procedure polfs(n: longint; var parray: Scoord);
procedure polf2(n: longint; var parray: Coord);
procedure polf2i(n: longint; var parray: Icoord);
procedure polf2s(n: longint; var parray: Scoord);
DESCRIPTION
polf fills polygonal areas using the current texture pattern, color, and writemask. It takes two arguments: an array of points and the number of points in that array. Polygons are represented as arrays of points. The first and last points are automatically connected to close a polygon. The points can be expressed as integers, shorts, or real numbers, in 2D or 3D space. Two-dimensional polygons are drawn with z=0. After the polygon is filled, the current graphics position is set to the first point in the array. The results are undefined if the polygon is not convex.
SEE ALSO
poly, rect, rectf, pdr, pmv, rpdr, rpmv
Version 2.4 — May 08, 1986