Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pdri(3G) — IRIX 6.5.3f

Media Vault

Software Library

Restoration Projects

Artifacts Sought



pdr(3G)                                                                pdr(3G)



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

C SPECIFICATION
     void pdr(x, y, z)
     Coord x, y, z;

     void pdri(x, y, z)
     Icoord x, y, z;

     void pdrs(x, y, z)
     Scoord x, y, z;

     void pdr2(x, y)
     Coord x, y;

     void pdr2i(x, y)
     Icoord x, y;

     void pdr2s(x, y)
     Scoord 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:

          pmv(0.0, 0.0, 0.0);
          pdr(1.0, 0.0, 0.0);
          pdr(1.0, 1.0, 0.0);
          pdr(0.0, 1.0, 0.0);
          pclos();






                                                                        Page 1





pdr(3G)                                                                pdr(3G)



SEE ALSO
     bgnpolygon, endpolygon, 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
     bgnpolygon and endpolygon.

     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.













































                                                                        Page 2



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026