|
| | cColor () |
| | default constructor
|
| |
| | cColor (const IColor *pColor) |
| | constructor from IColor
|
| |
| | cColor (const tColor &oColor) |
| | Constructor.
|
| |
| | cColor (tInt nRedLocal, tInt nGreenLocal, tInt nBlueLocal, tInt nAlphaLocal=255) |
| | constructor with several init parameters.
|
| |
| | cColor (tUInt8 nRed, tUInt8 nGreen, tUInt8 nBlue, tUInt8 nAlpha=255) |
| | constructor with several init parameters.
|
| |
| | cColor (tFloat32 fRed, tFloat32 fGreen, tFloat32 fBlue, tFloat32 fAlpha=1.0f) |
| | constructor with several init parameters.
|
| |
| | cColor (tUInt32 nRGBA) |
| | Constructor with a bitfield containing the encoded rgba-values.
|
| |
| | cColor (tUInt32 nRGBA, tInt oPixelFormat) |
| | Constructor with a bitfield containing the encoded rgba-values and another parameter which describes the format.
|
| |
| tVoid | Release () |
| | Releases this color.
|
| |
| tVoid | Set (tInt nRedLocal, tInt nGreenLocal, tInt nBlueLocal, tInt nAlphaLocal=255) |
| | Method to set color and transparency information.
|
| |
| tVoid | Set (tUInt8 nRedLocal, tUInt8 nGreenLocal, tUInt8 nBlueLocal, tUInt8 nAlphaLocal=255) |
| | Method to set color and transparency information.
|
| |
| tVoid | Set (tFloat32 fRed, tFloat32 fGreen, tFloat32 fBlue, tFloat32 fAlpha=1.0f) |
| | Method to set color and transparency information.
|
| |
| tVoid | SetRGBA (tUInt32 nRGBA) |
| | method to set color and transparency with a combined parameter (3 color channels and the alphachannel)
|
| |
| tVoid | SetRGBA (tUInt32 nRGBA, tInt oPixelFormat) |
| | Method which decodes the rgba-values stored in nRGBA depending on the given pixelformat.
|
| |
| tUInt32 | GetRGBA () const |
| | Gets a four Byte value containing the 3 color channels and the alphachannel.
|
| |
| tUInt32 | GetRGBA (tInt oPixelFormat) const |
| | Gets a four byte balue containing the current rgba-values encoded in the given pixel format.
|
| |
| | operator tUInt32 () |
| | Casting operator which converts an RGBA structure into an tUInt32 For conversion, the format PF_RGBA_8888 is assumed.
|
| |
| tVoid | SetRed (tUInt8 nRedValue) |
| | Sets the value of the red channel.
|
| |
| tUInt8 | GetRed () const |
| | Returns the value for the red channel.
|
| |
| tVoid | SetGreen (tUInt8 nGreenValue) |
| | Sets the value of the green channel.
|
| |
| tUInt8 | GetGreen () const |
| | Returns the value for the green channel.
|
| |
| tVoid | SetBlue (tUInt8 nBlueValue) |
| | Sets the value of the blue channel.
|
| |
| tUInt8 | GetBlue () const |
| | Returns the value for the green channel.
|
| |
| tVoid | SetAlpha (tUInt8 nAlphaValue) |
| | Sets the value of the alpha channel.
|
| |
| tUInt8 | GetAlpha () const |
| | This function returns the value for the alpha channel.
|
| |
| tUInt8 | GetBrightness () const |
| | This function returns the brightness value.
|
| |
| | operator IColor * () |
| | instance of IColor
|
| |
| | operator const IColor * () const |
| | instance of IColor
|
| |
| virtual | ~IColor () |
| | virtual destructor to ensure proper cleanup.
|
| |
|
| static cColor | Scale (const cColor &c, tInt nAlpha) |
| | scales a color with an alpha channel
|
| |
| static cColor | Scale (const cColor &c, tFloat32 fAlpha) |
| | scales a color with an alpha channel
|
| |
| static cColor | Blend (const cColor &c1, const cColor &c2, tInt nAlpha) |
| | blends two colors with an alpha channel
|
| |
| static cColor | Blend (const cColor &c1, const cColor &c2, tFloat32 fAlpha) |
| | blends two colors with an alpha channel
|
| |
| static tResult | ColorFromString (const tChar *strColor, cColor &oColor) |
| | Converts a hexadecimal color value into a cColor object The input format is like the HTML color definition (red: #ff0000, green: #00ff00, blue: #0000ff...) The leading # must exist.
|
| |
Color class.
Definition at line 30 of file color.h.