DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

VisualRec(D4nfb)


VisualRec -- visual record structure defining a drawables visual class

Synopsis

#include "scrnintstr.h"

Description

Structure definition

typedef struct _Visual {
	unsigned long vid;
	short class;
	short bitsPerRGBValue;
	short ColormapEntries;
	short nplanes;
	unsigned long redMask, greenMask, blueMask;
	init offsetRed, offsetGreen, offsetBlue;
} VisualRec;

Structure members

The members are:

vid
visual ID. This is assigned by the nfbAddVisual(D3nfb) routine.

class
visual class as defined in the ../X11/X11/Xproto.h header file. Valid values are: StaticGray, GrayScale, StaticColor, PseudoColor, TrueColor, or DirectColor.

bitsPerRGBValue
number of bits used to represent an RGB value in the hardware

ColormapEntries
number of entries in the colormap

nplanes
log2 of ColorMapEntries. It can be less than or greater than the actual number of planes.

redMask, greenMask, blueMask
mask used to pull the red, green, and blue value from a pixel. This is only used by TrueColor and DirectColor visual types.

offsetRed, offsetGreen, offsetBlue
bit offset of the red, green, and blue values in a pixel. This is only used by TrueColor and DirectColor visual types.

Version applicability

This structure is supported for NFB drivers on all releases of SCO OpenServer 5, SVR5, and AIX 5L.

References

nfbAddVisual(D3nfb), nfbScreenInit(D3nfb)

For more information about Visuals and X color models, see Chapter 11 in Nabajyoti Barkakati, X Window System Programming, Second Edition.


19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005