Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

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

Media Vault

Software Library

Restoration Projects

Artifacts Sought

deflinestyle()  —  Silicon Graphics

NAME

deflinestyle − defines a linestyle

SPECIFICATION

C
deflinestyle(n, ls)
short n;
Linestyle ls;

FORTRAN
subroutine deflin(n, ls)
integer*4 n, ls

Pascal
procedure deflinestyle(n: longint; ls: Linestyle);

DESCRIPTION

deflinestyle defines a linestyle, which is a write-enabled pattern that is applied when lines are drawn.  The least-significant bit of the linestyle is applied first.  n specifies an index into a table where the linestyles are stored, and ls specifies a 16-bit pattern.  You can define up to 216 linestyles.  By default, index 0 contains the pattern FFFFx, which draws solid lines and cannot be redefined.  There is no performance penalty for drawing non-solid lines.  To replace a linestyle, specify the index of the old linestyle in place of the new one. 

SEE ALSO

defcursor, defrasterfont, defpattern, getlstyle, setlinestyle IRIS Grahics Programming, Section 5.1, Linestyles

NOTE

This routine can be used only in immediate mode. 

Version 2.5r1  —  October 29, 1986

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