defpattern() — Silicon Graphics
NAME
defpattern − defines a texture pattern
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: longint; var mask: Short);
DESCRIPTION
defpattern defines an arbitrary texture pattern. n specifies an index into a table of patterns. size specifies the size of the pattern: 16, 32, or 64 for a 16 x 16-, 32 x 32-, or 64 x 64-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 16 x 16 solid pattern that cannot be changed. There is no performance penalty for non-solid patterns.
SEE ALSO
defcursor, defrasterfont, deflinestyle, getpattern, setpattern IRIS Graphics Programming, Section 5.2, Patterns
NOTE
This routine is available only in immediate mode.
Version 2.5r1 — October 29, 1986