Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ defpatter(3G) — GL2 W3.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

defpattern(3G)  —  Silicon Graphics

NAME

defpattern − defines patterns

SPECIFICATION

C
defpattern(n, size, mask)
short n, size;
short *mask;

FORTRAN
subroutine defpat(n, size, mask)
integer*4 n, size
integer*2 mask((size*size)/16)

Pascal
procedure defpattern(n, size: Short; var mask: Short;

DESCRIPTION

defpattern defines an arbitrary pattern.  n specifies an index into a table of patterns.  size specifies the size of the pattern: 16, 32, or 64 for a 16x16-, 32x32-, or 64x64-bit pattern, respectively.  mask is an array of shorts that form the actual bit pattern.  The pattern is described from left to right and bottom to top, just as characters are described in a raster font.  By default, pattern 0 is a 16x16 solid pattern that cannot be changed.  There is no performance penalty for non-solid patterns. 

When using multiple windows, patterns, cursors, and fonts are available to all windows. 

SEE ALSO

defcursor, defrasterfont, deflinestyle, getpattern, setpattern Programming Guide, Section 5.2, Patterns

NOTE

This routine is available only in immediate mode. 

Version 3.6  —  December 20, 1987

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