polf(3G)

polf, polfi, polfs, polf2, polf2i, polf2s - draws a filled polygon

As shipped in IRIX 6.5.5. Unchanged since IRIX 6.5.

NAME
     polf, polfi, polfs, polf2, polf2i, polf2s - draws a filled polygon

FORTRAN 77 SPECIFICATION
     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)

     All of the above routines are functionally the same.  They differ only in
     the declared type of their parameters and whether or not they assume a
     two-dimensional or three-dimensional world.

PARAMETERS
     n        expects the number of vertices in the polygon.

     parray   expects the array containing the vertices of the polygon.

DESCRIPTION
     polf fills the polygonal area bounded by the vertices specified in
     parray.  The first and last vertices connect automatically to close a
     polygon.  The vertices can be expressed as integers, shorts, or real
     numbers, in 2-D or 3-D space.  2-D polygons are drawn with z=0.  After
     the polygon is filled, the current graphics position is set to the first
     vertex in the array.

     Properties that affect the drawing of polygons include the current color,
     writemask, fill pattern, shade model, polygon antialiasing mode, polygon
     scan conversion mode, and subpixel mode.  Some polygon modes are
     applicable only if old-style scan conversion is defeated.  (See note
     below.)
     There can be no more than 256 vertices in a polygon. In addition, polf
     cannot correctly draw polygons that intersect themselves.

SEE ALSO
     backfa, bgnpol, concav, frontf, glcomp, poly, polymo, polysm, scrsub,
     setpat, shadem, subpix

NOTE
     By default polf draws a polygon using the old-style scan conversion
     algorithm, rather than the point sampling algorithm used by bgnpol and
     endpol.  Point sampling is prefered over old-style scan conversion
     because it has higher performance, it results in higher-quality images
     when blending, logical operations, or stenciling are used, and it
     supports new rendering features such as texture mapping, fog, and
     antialiasing.  Call glcomp(GLCOLD,0) to enable point sampling of polygons
     generated by polf.