Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ splf(3g) — GL2 W2.5r1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

splf()  —  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 polygonal areas using the current texture pattern and writemask.  It takes three arguments: parray, an array of points; array, an array of the intensities at these points; and 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 2D or 3D space.  Two-dimensional 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

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

Version 2.5r1  —  October 29, 1986

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