ezEngine  Milestone 7
ezColorGammaUB Class Reference

A 8bit per channel unsigned normalized (values interpreted as 0-1) color storage format that represents colors in gamma space. More...

#include <Color8UNorm.h>

Inheritance diagram for ezColorGammaUB:

Public Member Functions

 ezColorGammaUB ()
 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. More...
 
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 ezColorUnsignedByteBase
 EZ_DECLARE_POD_TYPE ()
 
const ezUInt8 * GetData () const
 Conversion to const ezUInt8*.
 
ezUInt8 * GetData ()
 Conversion to ezUInt8*.
 

Additional Inherited Members

- Public Attributes inherited from ezColorUnsignedByteBase
ezUInt8 r
 
ezUInt8 g
 
ezUInt8 b
 
ezUInt8 a
 
- Protected Member Functions inherited from ezColorUnsignedByteBase
EZ_FORCE_INLINE ezColorUnsignedByteBase (ezUInt8 R, ezUInt8 G, ezUInt8 B, ezUInt8 A)
 

Detailed Description

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.

See Also
ezColor

Constructor & Destructor Documentation

ezColorGammaUB::ezColorGammaUB ( const ezColor color)
inline

Initializes the color with ezColor. Converts the linear space color to gamma space. Assumes that the given color is normalized.

See Also
ezColor::IsNormalized

The documentation for this class was generated from the following files: