Page 76 OpenGL Super Bible! auxSetOneColor Purpose Sets a single color in the color-index mode color palette. Include File Syntax void auxSetOneColor(int index, float red, float green, float blue); Description This function is used in color index mode. In this mode, rather than specifying colors with RGB values, a palette of colors is created. Object colors are designated by specifying an index into this palette. This functions sets the RGB values for the color that is represented by a particular palette index. Parameters index int: The index into the color palette. red float: The red component of the desired color. green float: The green component of the desired color. blue float: The blue component of the desired color. Returns None. Example See the COLORDX supplementary sample on the CD subdirectory for this chapter. Note that this sample requires operation on a palletized device (most 256-color cards, but not more than 8 bits of color). See Also getColorMapSize, auxSetRGBMap
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision best web hosting services
This entry was posted
on Tuesday, May 8th, 2007 at 10:03 am and is filed under Coldfusion.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.