deflinestyle(3G) — 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: Short; 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 215 linestyles. By default, index 0 contains the pattern 0xFFFF, which draws solid lines and cannot be redefined. There is no performance penalty for drawing non-solid lines. To replace a linestyle, respecify the previous index.
When using multiple windows, patterns, cursors, and fonts are available to all windows.
SEE ALSO
defcursor, defpattern, defrasterfont, getlstyle, lsrepeat, setlinestyle Programming Guide , Section 5.1, Linestyles
NOTE
This routine can be used only in immediate mode.
Version 3.6 — December 20, 1987