*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> makemap (1)              



MAKEMAP(1G)							   MAKEMAP(1G)

NAME    [Toc]    [Back]

     makemap - store colors into the gl	color map

SYNOPSIS    [Toc]    [Back]

     makemap [ -full ]

DESCRIPTION    [Toc]    [Back]

     A colormap	is a mapping from color-index values (integers)	into RGB
     values.  All GL programs (graphics	programs linked	with libgl) share a
     common X colormap,	which is distinct from the default X root colormap.

     Essentially, makemap causes a certain set of colors to be assigned	to the
     GL	colormap (which	is just	another	X colormap as far as the X server is

     Although there may	be multiple X colormaps	defined	in the system at any
     one time, only one	of these X colormaps is	installed (loaded into the
     single hardware colormap) at any given time.  The GL colormap will	be
     installed whenever	GL programs have input focus.

     The GL colormap is	relevant only for GL programs running in cmode
     (color-index mode).

     By	default, makemap will initialize the first 256 entries in the GL
     colormap with the exception of color cells	16 thru	31.  The reason	for
     not initializing 16-31 is so that X clients can use those cells without
     interfering with GL programs.  The	lowest eight colors of the GL colormap
     are mapped	to the eight standard colors of	the Graphics Library (black,
     red, green, yellow, blue, magenta,	cyan and white).  The next 8 colors
     (8-15) are	mapped to some pastel shades as	used by	the IRIS Workspace and
     other system tools.  These	colors can be dithered with the	first eight to
     get a very	wide range even	on a minimal system when in double buffered
     mode.  The	next 16	colors (16-31) are left	untouched.  The	next 24	colors
     (32 to 55)	are mapped as a	black to almost-white gray ramp.  The
     remaining 200 colors (56 to 255) are mapped as a 5*8*5 color cube,	which
     starts at black and ends with white.  In this color cube, the 8 levels of
     green change the fastest, then 5 levels of	red, and finally the 5 levels
     of	blue change slowest.


     -full If there are	more than eight	planes,	map color cells	256-511	to the
	   ordered color map used by some of the image tools in	the 4DGifts
	   package and colors 512-767 to a 256 level black to white gray ramp.

SEE ALSO    [Toc]    [Back]

     loadmap(1G), savemap(1G), showmap(1G),

									Page 1

NAME    [Toc]    [Back]

     makemap - create database maps for	sendmail

SYNOPSIS    [Toc]    [Back]

     makemap [-N] [-d] [-f] [-o] [-r] [-s] [-v]	maptype	mapname

DESCRIPTION    [Toc]    [Back]

     makemap creates the database maps used by the keyed map lookups in
     sendmail(8).  It reads input from the standard input and outputs them to
     the indicated mapname.

     Depending on how it is compiled, makemap handles up to three different
     database formats, selected	using the maptype parameter.  They may be

     dbm	 DBM format maps.  This	requires the ndbm(3) library.

     btree	 B-Tree	format maps.  This requires the	new Berkeley DB	library.

     hash	 Hash format maps.  This also requires the Berkeley DB library.

     In	all cases, makemap reads lines from the	standard input consisting of
     two words separated by white space.  The first is the database key, the
     second is the value.  The value may contain ``%n''	strings	to indicated
     parameter substitution.  Literal percents should be doubled (``%%'').
     Blank lines and lines beginning with ``#''	are ignored.

   Flags    [Toc]    [Back]

     -N		 Include the null byte that terminates strings in the map.
		 This must match the -N	flag in	the sendmail.cf	``K'' line.

     -d		 Allow duplicate keys in the map.  This	is only	allowed	on BTree
 format maps.  If two identical keys are read, they will
		 both be inserted into the map.

     -f		 Normally all upper case letters in the	key are	folded to lower
 case.  This	flag disables that behaviour.  This is intended
 to mesh with the -f	flag in	the K line in sendmail.cf.
		 The value is never case folded.

     -o		 Append	to an old file.	 This allows you to augment an existing

     -r		 Allow replacement of existing keys.  Normally makemap complains
	if you repeat a	key, and does not do the insert.

     -s		 Ignore	safety checks on maps being created.  This includes
		 checking for hard or symbolic links in	world writable directories.

     -v		 Verbosely print what it is doing.

SEE ALSO    [Toc]    [Back]


HISTORY    [Toc]    [Back]

     The makemap command appeared in 4.4BSD.

4.4BSD			       November	16, 1992			     1

4.4BSD			       November	16, 1992			     1
[ Back ]
 Similar pages
Name OS Title
colorview IRIX display list of X11 colors and show selected color
SgColorChooserSetStoredColor IRIX A ColorChooser function that sets the color of the ColorChooser's stored color swatch
DXmColorMixSetNewColor Tru64 Sets the new color red, green, and blue values in the color mixing widget.
DXmColorMixGetNewColor Tru64 Retrieves (returns) the color mixing widget's current new color red, green, and blue values.
xcmsdb HP-UX Device Color Characterization utility for X Color Management System
xcmsdb IRIX Device Color Characterization utility for X Color Management System
xcmsdb Tru64 Device Color Characterization utility for X Color Management System
glColorPointer Tru64 define an array of colors
assume_default_colors OpenBSD use terminal's default colors
getcolor IRIX maintain database of colors
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service