Describes color in engine. More...
#include <DGLE_Types.h>
Public Types | |
typedef float(& | ref )[4] |
typedef const float(& | cref )[4] |
Public Member Functions | |
TColor4 () | |
TColor4 (uint32 ui32RGBA) | |
TColor4 (uint8 ubR, uint8 ubG, uint8 ubB, uint8 ubA) | |
TColor4 (cref rgba) | |
void | SetColorF (float fR, float fG, float fB, float fA) |
void | SetColorB (uint8 ubR, uint8 ubG, uint8 ubB, uint8 ubA) |
uint32 | ColorRGB () |
uint32 | ColorRGBA () |
operator uint32 () | |
operator ref () | |
operator cref () const | |
Public Attributes | |
union { | |
struct { | |
float r | |
float g | |
float b | |
float a | |
} | |
float rgba [4] | |
}; | |
Describes color in engine.
Color is four component based. Each component is float, value can vary from 0.0 to 1.0.
typedef const float(& cref)[4] |
typedef float(& ref)[4] |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
union { ... } |
float a |
float b |
float g |
float r |
float rgba[4] |