pdr(3G)

pdr, pdri, pdrs, pdr2, pdr2i, pdr2s - specifies the next point of a polygon

As shipped in IRIX 6.5.30. Unchanged since IRIX 6.5.

NAME
     pdr, pdri, pdrs, pdr2, pdr2i, pdr2s - specifies the next point of a
     polygon

FORTRAN 77 SPECIFICATION
     subroutine pdr(x, y, z)
     real x, y, z

     subroutine pdri(x, y, z)
     integer*4 x, y, z

     subroutine pdrs(x, y, z)
     integer*2 x, y, z

     subroutine pdr2(x, y)
     real x, y

     subroutine pdr2i(x, y)
     integer*4 x, y

     subroutine pdr2s(x, y)
     integer*2 x, y

     All of the above routines are functionally the same.  They differ only in
     the type declarations of their parameters and in whether they expect a
     two- or three-dimensional space.

PARAMETERS
     x   expects the x coordinate of the next defining point for the polygon.

     y   expects the y coordinate of the next defining point for the polygon.

     z   expects the z coordinate of the next defining point for the polygon.

DESCRIPTION
     pdr specifies the next point of a polygon.  When pdr is executed, it
     draws a line to the specified point (x,y,z) which then becomes the
     current graphics position.  The next pdr call will start drawing from
     that point.  To draw a typical polygon start with pmv, follow it with a
     sequence of calls to pdr and end it with pclos.

EXAMPLE
     The following sequence draws a square:

          call pmv(0.0, 0.0, 0.0)
          call pdr(1.0, 0.0, 0.0)
          call pdr(1.0, 1.0, 0.0)
          call pdr(0.0, 1.0, 0.0)
          call pclos
SEE ALSO
     bgnpol, endpol, pclos, pmv, v

NOTES
     pdr should not be used in new development.  Rather, polygons should be
     drawn using the high-performance v commands, surrounded by calls to
     bgnpol and endpol.

     There can be no more than 256 vertices in a polygon.  Therefore, there
     can be no more than 255 pdr calls between pmv and pclos.