![]() |
Plasma Engine
2.0
|
A 8bit per channel unsigned normalized (values interpreted as 0-1) color storage format that represents colors in linear space. More...
#include <Color8UNorm.h>
Public Member Functions | |
PL_DECLARE_POD_TYPE () | |
plColorLinearUB ()=default | |
Default-constructed color is uninitialized (for speed) | |
plColorLinearUB (plUInt8 r, plUInt8 g, plUInt8 b, plUInt8 a=255) | |
Initializes the color with r, g, b, a. | |
plColorLinearUB (const plColor &color) | |
Initializes the color with plColor. Assumes that the given color is normalized. | |
void | operator= (const plColor &color) |
Initializes the color with plColor. | |
plColor | ToLinearFloat () const |
Converts this color to plColor. | |
![]() | |
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. | |
Static Public Member Functions | |
static plColorLinearUB | MakeFromABGR8 (plUInt32 value) |
Extracts the values from a uint32 with R at the least significant bits, then G, then B and A at the most significant bits. | |
Additional Inherited Members | |
![]() | |
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 linear space.
For any calculations or conversions use plColor.
|
inline |
Initializes the color with plColor. Assumes that the given color is normalized.