Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pdr(3g) — GL2 W2.5

Media Vault

Software Library

Restoration Projects

Artifacts Sought

pdr()  —  Silicon Graphics

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 routine for filled polygons.  You draw a typical polygon with a pmv, a sequence of pdr’s, and close it 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();

All polygons must be convex.

SEE ALSO

pclos, pmv, rpdr, rpmv IRIS Graphics Programming, Section 3.6, Polygons

Version 2.5  —  April 22, 1987

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