defpattern() — Silicon Graphics Beta Release
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: longint; size: Short; mask: Ibuffer);
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.3 — July 04, 1985