![]() |
ezEngine Release 25.08
|
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 | |
| EZ_DECLARE_POD_TYPE () | |
| ezColorGammaUB ()=default | |
| Default-constructed color is uninitialized (for speed) | |
| ezColorGammaUB (ezUInt8 uiGammaRed, ezUInt8 uiGammaGreen, ezUInt8 uiGammaBlue, ezUInt8 uiLinearAlpha=255) | |
| Copies the color values. RGB are assumed to be in Gamma space. | |
| ezColorGammaUB (const ezColor &color) | |
| Initializes the color with ezColor. Converts the linear space color to gamma space. Assumes that the given color is normalized. | |
| void | operator= (const ezColor &color) |
| Initializes the color with ezColor. Converts the linear space color to gamma space. | |
| ezColor | ToLinearFloat () const |
| Converts this color to ezColor. | |
Public Member Functions inherited from ezColorBaseUB | |
| EZ_DECLARE_POD_TYPE () | |
| ezColorBaseUB ()=default | |
| Default-constructed color is uninitialized (for speed) | |
| ezColorBaseUB (ezUInt8 r, ezUInt8 g, ezUInt8 b, ezUInt8 a=255) | |
| Initializes the color with r, g, b, a. | |
| const ezUInt8 * | GetData () const |
| Conversion to const ezUInt8*. | |
| ezUInt8 * | GetData () |
| Conversion to ezUInt8*. | |
| ezUInt32 | 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. | |
| ezUInt32 | 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 ezColorBaseUB | |
| ezUInt8 | r |
| ezUInt8 | g |
| ezUInt8 | b |
| ezUInt8 | 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 ezColor.
|
inline |
Initializes the color with ezColor. Converts the linear space color to gamma space. Assumes that the given color is normalized.