![]() |
Plasma Engine
2.0
|
A 8bit per channel unsigned normalized (values interpreted as 0-1) color storage format that represents colors in gamma space. More...
#include <Color8UNorm.h>

Public Member Functions | |
| PL_DECLARE_POD_TYPE () | |
| plColorGammaUB ()=default | |
| Default-constructed color is uninitialized (for speed) | |
| plColorGammaUB (plUInt8 uiGammaRed, plUInt8 uiGammaGreen, plUInt8 uiGammaBlue, plUInt8 uiLinearAlpha=255) | |
| Copies the color values. RGB are assumed to be in Gamma space. | |
| plColorGammaUB (const plColor &color) | |
| Initializes the color with plColor. Converts the linear space color to gamma space. Assumes that the given color is normalized. | |
| void | operator= (const plColor &color) |
| Initializes the color with plColor. Converts the linear space color to gamma space. | |
| plColor | ToLinearFloat () const |
| Converts this color to plColor. | |
Public Member Functions inherited from plColorBaseUB | |
| PL_DECLARE_POD_TYPE () | |
| plColorBaseUB ()=default | |
| Default-constructed color is uninitialized (for speed) | |
| plColorBaseUB (plUInt8 r, plUInt8 g, plUInt8 b, plUInt8 a=255) | |
| Initializes the color with r, g, b, a. | |
| const plUInt8 * | GetData () const |
| Conversion to const plUInt8*. | |
| plUInt8 * | GetData () |
| Conversion to plUInt8*. | |
| plUInt32 | 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. | |
| plUInt32 | 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. | |
Additional Inherited Members | |
Public Attributes inherited from plColorBaseUB | |
| plUInt8 | r |
| plUInt8 | g |
| plUInt8 | b |
| plUInt8 | a |
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 plColor.
|
inline |
Initializes the color with plColor. Converts the linear space color to gamma space. Assumes that the given color is normalized.