A 8bit per channel color storage format with undefined encoding. It is up to the user to reinterpret as a gamma or linear space color.
More...
#include <Color8UNorm.h>
|
| 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.
|
|
|
ezUInt8 | r |
|
ezUInt8 | g |
|
ezUInt8 | b |
|
ezUInt8 | a |
|
A 8bit per channel color storage format with undefined encoding. It is up to the user to reinterpret as a gamma or linear space color.
- See also
- ezColorLinearUB
-
ezColorGammaUB
The documentation for this class was generated from the following files:
- /home/runner/work/ezEngine/ezEngine/Code/Engine/Foundation/Math/Color8UNorm.h
- /home/runner/work/ezEngine/ezEngine/Code/Engine/Foundation/Math/Implementation/Color8UNorm_inl.h