pdr() — Silicon Graphics Beta Release
NAME
pdr - polygon draw
SPECIFICATION
C
pdr(x, y, z)
Coord x, y, z;
pdri(x, y, z)
Icoord x, y, z;
pdrs(x, y, z)
Scoord x, y, z;
pdr2(x, y)
Coord x, y;
pdr2i(x, y)
Icoord x, y;
pdr2s(x, y)
Scoord x, y;
FORTRAN
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
Pascal
procedure pdr(x, y, z: Coord);
procedure pdri(x, y, z: Icoord);
procedure pdrs(x, y, z: Scoord);
procedure pdr2(x, y: Coord);
procedure pdr2i(x, y: Icoord);
procedure pdr2s(x, y: Scoord);
DESCRIPTION
pdr is the draw command for filled polygons. A typical polygon is drawn with a pmv, a sequence of pdr’s, and is closed with a pclos. For 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();
The results are undefined if the polygon is not convex.
SEE ALSO
pclos, pmv, rpdr, rpmv
Version 2.3 — July 04, 1985