|
| | cColorb () |
| | Constructor of cColorb.
|
| |
| | cColorb (const GLubyte a_red, const GLubyte a_green, const GLubyte a_blue, const GLubyte a_alpha=0xff) |
| | Constructor of cColorb. Define a color by passing its RGBA components as parameters.
|
| |
| | ~cColorb () |
| | Destructor of cColorb.
|
| |
| void | setModificationFlags (const bool a_value) |
| | This method is used to mark the color as modified.
|
| |
| void | copyTo (cColorb &a_color) |
| | This method copies this color to another if it has been marked.
|
| |
| void | set (const GLubyte a_red, const GLubyte a_green, const GLubyte a_blue, const GLubyte a_alpha=0xff) |
| | This method sets the color by passing its RGBA components as parameters in GLubyte format.
|
| |
| void | setf (const GLfloat a_red, const GLfloat a_green, const GLfloat a_blue, const GLfloat a_alpha=1.0f) |
| | This method sets the color by passing its RGBA components as parameters in float format.
|
| |
| void | setMem3 (const GLubyte *a_colorRGB) |
| | This method sets the color by copying three floats from an external array, each describing RGB components. A is set to 0xff.
|
| |
| void | setMem4 (const GLubyte *a_colorRGBA) |
| | This method sets the color by copying four floats from an external array, each describing RGBA components.
|
| |
| void | setR (const GLubyte a_red) |
| | This method sets the red component.
|
| |
| GLubyte | getR () const |
| | This method returns the red component.
|
| |
| void | setG (const GLubyte a_green) |
| | This method sets the green component.
|
| |
| GLubyte | getG () const |
| | This method returns the green component.
|
| |
| void | setB (const GLubyte a_blue) |
| | This method sets the blue component.
|
| |
| GLubyte | getB () const |
| | This method returns the blue component.
|
| |
| void | setA (const GLubyte a_alpha) |
| | This method sets the alpha component.
|
| |
| GLubyte | getA () const |
| | This method returns the alpha component.
|
| |
| void | setLuminance (const GLubyte a_luminance) |
| | This method sets the luminance value of this color.
|
| |
| GLubyte | getLuminance () const |
| | This method returns the luminance value of this color.
|
| |
| void | render () const |
| | This method renders this color in OpenGL (sets it to be the current color).
|
| |
| const GLubyte * | getData () const |
| | This method returns a pointer to the color data.
|
| |
| cColorf | getColorf () const |
| | This method returns this color converted into cColorf format.
|
| |
| GLubyte | operator[] (const unsigned int n) const |
| | This operator returns the n-th component of this color (we provide both const and non-const versions so you can use this operator as an l-value or an r-value).
|
| |
| GLubyte & | operator[] (const unsigned int n) |
| | This operator returns the n-th component of this color (we provide both const and non-const versions so you can use this operator as an l-value or an r-value).
|
| |
| bool | operator== (const cColorb &a_color) |
| | This operator compares two colors and returns true if the color components RGB are identical, false otherwise. The transparency component A is ignored.
|
| |
| bool | operator!= (const cColorb &a_color) |
| | This operator compares two colors and returns false if the color components RGB are identical, true otherwise. The transparency component A is ignored.
|
| |
| void | setRedIndian () |
| | This method sets the color to Red Indian.
|
| |
| void | setRedLightCoral () |
| | This method sets the color to Light Coral Red.
|
| |
| void | setRedSalmon () |
| | This method sets the color to Red Salmon.
|
| |
| void | setRedDarkSalmon () |
| | This method sets the color to Dark Red Salmon.
|
| |
| void | setRedLightSalmon () |
| | This method sets the color to Light Red Salmon.
|
| |
| void | setRedCrimson () |
| | This method sets the color to Red Crimson.
|
| |
| void | setRed () |
| | This method sets the color to Red.
|
| |
| void | setRedFireBrick () |
| | This method sets the color to Red Fire Brick.
|
| |
| void | setRedDark () |
| | This method sets the color to Dark Red.
|
| |
| void | setPink () |
| | This method sets the color to Pink.
|
| |
| void | setPinkLight () |
| | This method sets the color to Light Pink.
|
| |
| void | setPinkHot () |
| | This method sets the color to Hot Pink.
|
| |
| void | setPinkDeep () |
| | This method sets the color to Deep Pink.
|
| |
| void | setPinkMediumVioletRed () |
| | This method sets the color to Medium Violet Red.
|
| |
| void | setPinkPaleVioletRed () |
| | This method sets the color to Pale Violet Red.
|
| |
| void | setOrangeLightSalmon () |
| | This method sets the color to Orange Light Salmon.
|
| |
| void | setOrangeCoral () |
| | This method sets the color to Orange Coral.
|
| |
| void | setOrangeTomato () |
| | This method sets the color to Orange Tomato.
|
| |
| void | setOrangeRed () |
| | This method sets the color to Orange Red.
|
| |
| void | setOrangeDark () |
| | This method sets the color to Dark Orange.
|
| |
| void | setOrange () |
| | This method sets the color to Orange.
|
| |
| void | setYellowGold () |
| | This method sets the color to Gold.
|
| |
| void | setYellow () |
| | This method sets the color to Yellow.
|
| |
| void | setYellowLight () |
| | This method sets the color to Light Yellow.
|
| |
| void | setYellowLemonChiffon () |
| | This method sets the color to Lemon Chiffon.
|
| |
| void | setYellowLightGoldenrod () |
| | This method sets the color to Light Goldenrod.
|
| |
| void | setYellowPapayaWhip () |
| | This method sets the color to Papaya Whip.
|
| |
| void | setYellowMoccasin () |
| | This method sets the color to Moccasin.
|
| |
| void | setYellowPeachPuff () |
| | This method sets the color to Peach Puff.
|
| |
| void | setYellowPaleGoldenrod () |
| | This method sets the color to Pale Goldenrod.
|
| |
| void | setYellowKhaki () |
| | This method sets the color to Khaki.
|
| |
| void | setYellowDarkKhaki () |
| | This method sets the color to Dark Khaki.
|
| |
| void | setPurpleLavender () |
| | This method sets the color to Lavender.
|
| |
| void | setPurpleThistle () |
| | This method sets the color to Thistle.
|
| |
| void | setPurplePlum () |
| | This method sets the color to Plum.
|
| |
| void | setPurpleViolet () |
| | This method sets the color to Violet.
|
| |
| void | setPurpleOrchid () |
| | This method sets the color to Orchid.
|
| |
| void | setPurpleFuchsia () |
| | This method sets the color to Fuchsia.
|
| |
| void | setPurpleMagenta () |
| | This method sets the color to Magenta.
|
| |
| void | setPurpleMediumOrchid () |
| | This method sets the color to Medium Orchid.
|
| |
| void | setPurpleMedium () |
| | This method sets the color to Medium Purple.
|
| |
| void | setPurpleAmethyst () |
| | This method sets the color to Amethyst.
|
| |
| void | setPurpleBlueViolet () |
| | This method sets the color to Blue Violet.
|
| |
| void | setPurpleDarkViolet () |
| | This method sets the color to Dark Violet.
|
| |
| void | setPurpleDarkOrchid () |
| | This method sets the color to Dark Orchid.
|
| |
| void | setPurpleDarkMagenta () |
| | This method sets the color to Dark Magenta.
|
| |
| void | setPurple () |
| | This method sets the color to Purple.
|
| |
| void | setPurpleIndigo () |
| | This method sets the color to Indigo.
|
| |
| void | setPurpleSlateBlue () |
| | This method sets the color to Slate Blue.
|
| |
| void | setPurpleDarkSlateBlue () |
| | This method sets the color to Dark Slate Blue.
|
| |
| void | setPurpleMediumSlateBlue () |
| | This method sets the color to Medium Slate Blue.
|
| |
| void | setGreenYellow () |
| | This method sets the color to Green Yellow.
|
| |
| void | setGreenChartreuse () |
| | This method sets the color to Chartreuse.
|
| |
| void | setGreenLawn () |
| | This method sets the color to Lawn Green.
|
| |
| void | setGreenLime () |
| | This method sets the color to Lime.
|
| |
| void | setGreenLimeGreen () |
| | This method sets the color to Lime Green.
|
| |
| void | setGreenPale () |
| | This method sets the color to Pale Green.
|
| |
| void | setGreenLight () |
| | This method sets the color to Light Green.
|
| |
| void | setGreenMediumSpring () |
| | This method sets the color to Medium Spring Green.
|
| |
| void | setGreenSpring () |
| | This method sets the color to Spring Green.
|
| |
| void | setGreenMediumSea () |
| | This method sets the color to Medium Sea Green.
|
| |
| void | setGreenSea () |
| | This method sets the color to Sea Green.
|
| |
| void | setGreenForest () |
| | This method sets the color to Forest Green.
|
| |
| void | setGreen () |
| | This method sets the color to Green.
|
| |
| void | setGreenDark () |
| | This method sets the color to Dark Green.
|
| |
| void | setGreenYellowGreen () |
| | This method sets the color to Yellow Green.
|
| |
| void | setGreenOliveDrab () |
| | This method sets the color to Olive Drab.
|
| |
| void | setGreenOlive () |
| | This method sets the color to Olive.
|
| |
| void | setGreenDarkOlive () |
| | This method sets the color to Dark Olive Green.
|
| |
| void | setGreenMediumAquamarine () |
| | This method sets the color to Medium Aquamarine.
|
| |
| void | setGreenDarkSea () |
| | This method sets the color to Dark Sea Green.
|
| |
| void | setGreenLightSea () |
| | This method sets the color to Light Sea Green.
|
| |
| void | setGreenDarkCyan () |
| | This method sets the color to Dark Cyan.
|
| |
| void | setGreenTeal () |
| | This method sets the color to Teal.
|
| |
| void | setBlueAqua () |
| | This method sets the color to Aqua.
|
| |
| void | setBlueCyan () |
| | This method sets the color to Cyan.
|
| |
| void | setBlueLightCyan () |
| | This method sets the color to Light Cyan.
|
| |
| void | setBluePaleTurquoise () |
| | This method sets the color to Pale Turquoise.
|
| |
| void | setBlueAquamarine () |
| | This method sets the color to Aquamarine.
|
| |
| void | setBlueTurquoise () |
| | This method sets the color to Turquoise.
|
| |
| void | setBlueMediumTurquoise () |
| | This method sets the color to Medium Turquoise.
|
| |
| void | setBlueDarkTurquoise () |
| | This method sets the color to Dark Turquoise.
|
| |
| void | setBlueCadet () |
| | This method sets the color to Cadet Blue.
|
| |
| void | setBlueSteel () |
| | This method sets the color to Steel Blue.
|
| |
| void | setBlueLightSteel () |
| | This method sets the color to Light Steel Blue.
|
| |
| void | setBluePowder () |
| | This method sets the color to Powder Blue.
|
| |
| void | setBlueLight () |
| | This method sets the color to Light Blue.
|
| |
| void | setBlueSky () |
| | This method sets the color to Sky Blue.
|
| |
| void | setBlueLightSky () |
| | This method sets the color to Light Sky Blue.
|
| |
| void | setBlueDeepSky () |
| | This method sets the color to Deep Sky Blue.
|
| |
| void | setBlueDodger () |
| | This method sets the color to Doger Blue.
|
| |
| void | setBlueCornflower () |
| | This method sets the color to Cornflower Blue.
|
| |
| void | setBlueMediumSlate () |
| | This method sets the color to Medium Slate Blue.
|
| |
| void | setBlueRoyal () |
| | This method sets the color to Royal Blue.
|
| |
| void | setBlue () |
| | This method sets the color to Blue.
|
| |
| void | setBlueMedium () |
| | This method sets the color to Medium Blue.
|
| |
| void | setBlueDark () |
| | This method sets the color to Dark Blue.
|
| |
| void | setBlueNavy () |
| | This method sets the color to Navy.
|
| |
| void | setBlueMidnight () |
| | This method sets the color to Midnight Blue.
|
| |
| void | setBrownCornsilk () |
| | This method sets the color to Cornsilk.
|
| |
| void | setBrownBlanchedAlmond () |
| | This method sets the color to Blanched Almond.
|
| |
| void | setBrownBisque () |
| | This method sets the color to Bisque.
|
| |
| void | setBrownNavajoWhite () |
| | This method sets the color to Navajo White.
|
| |
| void | setBrownWheat () |
| | This method sets the color to Wheat.
|
| |
| void | setBrownBurlyWood () |
| | This method sets the color to Burly Wood.
|
| |
| void | setBrownTan () |
| | This method sets the color to Tan.
|
| |
| void | setBrownRosy () |
| | This method sets the color to Rosy Brown.
|
| |
| void | setBrownSandy () |
| | This method sets the color to Sandy Brown.
|
| |
| void | setBrownGoldenrod () |
| | This method sets the color to Brown Goldenrod.
|
| |
| void | setBrownDarkGoldenrod () |
| | This method sets the color to Dark Brown Goldenrod.
|
| |
| void | setBrownPeru () |
| | This method sets the color to Peru.
|
| |
| void | setBrownChocolate () |
| | This method sets the color to Chocolate.
|
| |
| void | setBrownSaddle () |
| | This method sets the color to Saddle Brown.
|
| |
| void | setBrownSienna () |
| | This method sets the color to Sienna.
|
| |
| void | setBrown () |
| | This method sets the color to Brown.
|
| |
| void | setBrownMaroon () |
| | This method sets the color to Maroon.
|
| |
| void | setWhite () |
| | This method sets the color to White.
|
| |
| void | setWhiteSnow () |
| | This method sets the color to White Snow.
|
| |
| void | setWhiteHoneydew () |
| | This method sets the color to Honeydew.
|
| |
| void | setWhiteMintCream () |
| | This method sets the color to Mint Cream.
|
| |
| void | setWhiteAzure () |
| | This method sets the color to Azure.
|
| |
| void | setWhiteAliceBlue () |
| | This method sets the color to Alice Blue.
|
| |
| void | setWhiteGhost () |
| | This method sets the color to Ghost White.
|
| |
| void | setWhiteSmoke () |
| | This method sets the color to White Smoke.
|
| |
| void | setWhiteSeashell () |
| | This method sets the color to Seashell.
|
| |
| void | setWhiteBeige () |
| | This method sets the color to Beige.
|
| |
| void | setWhiteOldLace () |
| | This method sets the color to Old Lace.
|
| |
| void | setWhiteFloral () |
| | This method sets the color to Floral White.
|
| |
| void | setWhiteIvory () |
| | This method sets the color to Ivory.
|
| |
| void | setWhiteAntique () |
| | This method sets the color to Antique White.
|
| |
| void | setWhiteLinen () |
| | This method sets the color to Linen.
|
| |
| void | setWhiteLavenderBlush () |
| | This method sets the color to Lavender Blush.
|
| |
| void | setWhiteMistyRose () |
| | This method sets the color to Misty Rose.
|
| |
| void | setGrayGainsboro () |
| | This method sets the color to Gainsboro.
|
| |
| void | setGrayLight () |
| | This method sets the color to Light Gray.
|
| |
| void | setGraySilver () |
| | This method sets the color to Silver.
|
| |
| void | setGrayDark () |
| | This method sets the color to Dark Gray.
|
| |
| void | setGray () |
| | This method sets the color to Gray.
|
| |
| void | setGrayDim () |
| | This method sets the color to Dim Gray.
|
| |
| void | setGrayLightSlate () |
| | This method sets the color to Light Slate Gray.
|
| |
| void | setGraySlate () |
| | This method sets the color to Slate Gray.
|
| |
| void | setGrayDarkSlate () |
| | This method sets the color to Dark Slate Gray.
|
| |
| void | setBlack () |
| | This method sets the color to Black.
|
| |
| void | setGrayLevel (const GLubyte a_level) |
| |