Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ splf(3G) — GL2 W3.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

splf(3G)  —  Silicon Graphics

NAME

splf − draws a shaded filled polygon

SPECIFICATION

C
splf(n, parray, iarray)
long n;
Coord parray[][3];
Colorindex iarray[];

splfi(n, parray, iarray)
long n;
Icoord parray[][3];
Colorindex iarray[];

splfs(n, parray, iarray)
long n;
Scoord parray[][3];
Colorindex iarray[];

splf2(n, parray, iarray)
long n;
Coord parray[][2];
Colorindex iarray[];

splf2i(n, parray, iarray)
long n;
Icoord parray[][2];
Colorindex iarray[];

splf2s(n, parray, iarray)
long n;
Scoord parray[][2];
Colorindex iarray[];

FORTRAN
subroutine splf(n, parray, iarray)
integer*4 n
real parray(3,n)
integer*2 iarray(n)
 

subroutine splfi(n, parray, iarray)
integer*4 n
integer*4 parray(3,n)
integer*2 iarray(n)

subroutine splfs(n, parray, iarray)
integer*4 n
integer*2 parray(3,n)
integer*2 iarray(n)

subroutine splf2(n, parray, iarray)
integer*4 n
real parray(2,n)
integer*2 iarray(n)

subroutine splf2i(n, parray, iarray)
integer*4 n
integer*4 parray(2,n)
integer*2 iarray(n)

subroutine splf2s(n, parray, iarray)
integer*4 n
integer*2 parray(2,n)
integer*2 iarray(n)

Pascal
procedure splf(n: longint; var parray; Coord;
var iarray: Colorindex);

procedure splfi(n: longint; var parray; Icoord;
var iarray: Colorindex);

procedure splfs(n: longint; var parray: Scoord;
var iarray: Colorindex);

procedure splf2(n: longint; var parray: Coord;
var iarray: Colorindex);

procedure splf2i(n: longint; var parray: Icoord;
var iarray: Colorindex;

procedure splf2s(n: longint; var parray: Scoord;
var iarray: Colorindex);

DESCRIPTION

splf draws Gouraud-shaded polygons using the current pattern and writemask.  It takes three arguments: parray, an array of points; array, an array of the intensities at these points; n, the number of points in each array.  Polygons are represented as arrays of points.  The first and last points automatically connect to close a polygon.  The points 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 drawn, the current graphics position is set to the first point in the array. 

All polygons must be convex. 

SEE ALSO

pdr, pmv, poly, rect, rectf, rpdr, rpmv Programming Guide, Section 13.1, Shading

Version 3.6  —  December 20, 1987

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