ezEngine  Milestone 9
ezColorLinearUB Class Reference

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

#include <Color8UNorm.h>

Inheritance diagram for ezColorLinearUB:

Public Member Functions

 EZ_DECLARE_POD_TYPE ()
 
 ezColorLinearUB ()
 Default-constructed color is uninitialized (for speed)
 
 ezColorLinearUB (ezUInt8 r, ezUInt8 g, ezUInt8 b, ezUInt8 a=255)
 Initializes the color with r, g, b, a.
 
 ezColorLinearUB (const ezColor &color)
 Initializes the color with ezColor. Assumes that the given color is normalized. More...
 
void operator= (const ezColor &color)
 Initializes the color with ezColor.
 
ezColor ToLinearFloat () const
 Converts this color to ezColor.
 
- Public Member Functions inherited from ezColorBaseUB
 EZ_DECLARE_POD_TYPE ()
 
 ezColorBaseUB ()
 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*.
 

Additional Inherited Members

- Public Attributes inherited from ezColorBaseUB
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 linear space.

For any calculations or conversions use ezColor.

See also
ezColor

Constructor & Destructor Documentation

◆ ezColorLinearUB()

ezColorLinearUB::ezColorLinearUB ( const ezColor color)
inline

Initializes the color with ezColor. Assumes that the given color is normalized.

See also
ezColor::IsNormalized

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