defpattern man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



defpattern(3G)							defpattern(3G)

NAME
     defpattern - defines patterns

C SPECIFICATION
     void defpattern(n, size, mask)
     short n, size;
     unsigned short mask[];

PARAMETERS
     n	    expects the constant that you want to use as an identifier for the
	    pattern described by mask.	This constant is used as an index into
	    a table of patterns. By default, pattern 0 is a 16X16 solid
	    pattern that cannot be changed.

     size   expects the size of the pattern: 16, 32, or 64 for a 16x16-,
	    32x32-, or 64x64-bit pattern, respectively.

     mask   expects an array of 16-bit integers that form the actual bit
	    pattern.  The system stores the pattern in a pattern table at
	    index n.  The pattern is described from left to right and bottom
	    to top, just as characters are described in a raster font.

DESCRIPTION
     defpattern allows you to define an arbitrary pattern and assign it an
     identifier. You can later reference this pattern in other routines via
     its identifier.  Patterns are available to all windows when using
     multiple windows.

     Patterns affect the filling of polygons, including rectangles, arcs, and
     circles, as well as polygons specified with individual vertices.  They
     also affect the filling of the window when clear(3g) is called.  Patterns
     have no effect on the scan conversion of points, lines, or characters, or
     on pixel write or copy operations.

     When a pattern is active (see setpattern), it is effectively replicated
     across the entire screen, with the edges of pattern tiles aligned to the
     left and bottom edges of the screen.  Bit 15 of each 16-bit description
     word is leftmost, and words are assembled left to right, then bottom to
     top, to form each pattern square.	Pixels on the screen that correspond
     to zeros in the pattern remain unmodified during scan conversion of
     polygons.	No changes are made to any bitplane bank of a protected pixel.

SEE ALSO
     deflinestyle, defrasterfont, getpattern, setpattern

NOTES
     This routine is available only in immediate mode.

     Some machines do not support 64x64 patterns.  Call
     getgdesc(GD_PATSIZE_64) to determine the availability of 64x64 patterns.

									Page 1

defpattern(3G)							defpattern(3G)

     There is a performance penalty on the Personal Iris for non-solid
     patterns.

     When defpattern is used to modify the current pattern, the new pattern
     becomes current only when setpattern is called again.

									Page 2

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net