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

  man pages->IRIX man pages -> standard/rgbcolor (3)              
Title
Content
Arch
Section
 

Contents


RGBcolor(3G)							  RGBcolor(3G)


NAME    [Toc]    [Back]

     RGBcolor -	sets the current color in RGB mode

C SPECIFICATION    [Toc]    [Back]

     void RGBcolor(red,	green, blue)
     short red,	green, blue;

PARAMETERS    [Toc]    [Back]

     red     expects the value indicating the intensity	of the red component.

     green   expects the value indicating the intensity	of the green
	     component.

     blue    expects the value indicating the intensity	of the blue component.

DESCRIPTION    [Toc]    [Back]

     RGBcolor sets the red, green, and blue color components of	the currently
     active GL framebuffer, one	of normal, popup, overlay, or underlay as
     specified by drawmode, to the specified values.  Alpha, when supported,
     is	set to the maximum value.  The current framebuffer must	be in RGB mode
     for the RGBcolor command to be applicable.	 Most drawing commands copy
     the current RGBA color components into the	color bitplanes	of the current
     framebuffer.  Color components are	retained in each draw mode, so when a
     draw mode is re-entered, red, green, blue,	and alpha are reset to the
     last values specified in that draw	mode.

     Color component values range from 0, specifying no	intensity, through
     255, specifying maximum intensity.	 Values	that exceed 255	are clamped to
     it.  Values less than 0 are not clamped, and therefore result in
     unpredictable operation.

     It	is an error to call RGBcolor while the current framebuffer is in color
     map mode.

     The color components of all framebuffers in RGB mode are set to zero when
     gconfig is	called.

SEE ALSO    [Toc]    [Back]

      
      
     c,	cpack, drawmode, gRGBcolor, lmcolor, RGBmode

NOTE    [Toc]    [Back]

     RGBcolor can also be used to modify the current material while lighting
     is	active (see lmcolor).


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
cmode IRIX sets color map mode as the current mode.
color IRIX sets the color index in the current draw mode
rgbmode IRIX sets a rendering and display mode that bypasses the color map
getcmmode IRIX returns the current color map mode
mmode IRIX sets the current matrix mode
c IRIX sets the RGB (or RGBA) values for the current color vector
doublebuffer IRIX sets the display mode to double buffer mode
DXmColorMixSetNewColor Tru64 Sets the new color red, green, and blue values in the color mixing widget.
SgColorChooserSetStoredColor IRIX A ColorChooser function that sets the color of the ColorChooser's stored color swatch
DXmColorMixGetNewColor Tru64 Retrieves (returns) the color mixing widget's current new color red, green, and blue values.
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service