|
|
| XII_DECLARE_POD_TYPE () |
|
| xiiColorGammaUB ()=default |
| | Default-constructed color is uninitialized (for speed).
|
|
| xiiColorGammaUB (xiiUInt8 uiGammaRed, xiiUInt8 uiGammaGreen, xiiUInt8 uiGammaBlue, xiiUInt8 uiLinearAlpha=255) |
| | Copies the color values. RGB are assumed to be in Gamma space.
|
| | xiiColorGammaUB (const xiiColor &color) |
|
void | operator= (const xiiColor &color) |
| | Initializes the color with xiiColor. Converts the linear space color to gamma space.
|
|
xiiColor | ToLinearFloat () const |
| | Converts this color to xiiColor.
|
|
| XII_DECLARE_POD_TYPE () |
|
| xiiColorBaseUB ()=default |
| | Default-constructed color is uninitialized (for speed).
|
| | xiiColorBaseUB (xiiUInt8 r, xiiUInt8 g, xiiUInt8 b, xiiUInt8 a=255) |
| | Initializes the color with r, g, b, a.
|
|
const xiiUInt8 * | GetData () const |
| | Conversion to const xiiUInt8*.
|
|
xiiUInt8 * | GetData () |
| | Conversion to xiiUInt8*.
|
|
xiiUInt32 | ToRGBA8 () const |
| | Packs the 4 color values into a single uint32 with A in the least significant bits and R in the most significant ones.
|
|
xiiUInt32 | ToABGR8 () const |
| | Packs the 4 color values into a single uint32 with R in the least significant bits and A in the most significant ones.
|
A 8bit per channel unsigned normalized (values interpreted as 0-1) color storage format that represents colors in gamma space.
For any calculations or conversions use xiiColor.
- See also
- xiiColor