Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ defpattern(3g) — GL2 W2.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

defpattern()  —  Silicon Graphics

NAME

defpattern - defines a texture pattern

SPECIFICATION

C
defpattern(n, size, mask)
short n, size;
Ushort 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 texture pattern.  The first argument specifies an index into a table of patterns.  The next, the size of the pattern: 16, 32, or 64 for a 16 x 16, 32 x 32, or 64 x 64 bit pattern, respectively.  Finally, the last argument is an array of shorts that form the actual bit pattern.  The pattern is described from left to right, bottom to top − in the same way as characters in a raster font.  By default, pattern 0 is a 16 x 16 solid pattern and cannot be changed.  There is no performance penalty for non-solid patterns. 

SEE ALSO

defcursor, defrasterfont, deflinestyle, getpattern, setpattern

NOTE

This command can be used only in immediate mode. 

Version 2.4  —  May 08, 1986

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