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