24 constexpr Color(
ColorArg inRHS,
uint8 inAlpha) : r(inRHS.r), g(inRHS.g), b(inRHS.b), a(inAlpha) { }
27 inline bool operator == (
ColorArg inRHS)
const {
return mU32 == inRHS.
mU32; }
28 inline bool operator != (
ColorArg inRHS)
const {
return mU32 != inRHS.
mU32; }
47 static Color sGetDistinctColor(
int inIndex);
79static_assert(is_trivial<Color>(),
"Is supposed to be a trivial type!");
std::uint8_t uint8
Definition: Core.h:440
unsigned int uint
Definition: Core.h:439
#define JPH_NAMESPACE_END
Definition: Core.h:367
std::uint32_t uint32
Definition: Core.h:442
#define JPH_EXPORT_GCC_BUG_WORKAROUND
Definition: Core.h:231
#define JPH_NAMESPACE_BEGIN
Definition: Core.h:361
DVec3 operator*(double inV1, DVec3Arg inV2)
Definition: DVec3.inl:447
#define JPH_ASSERT(...)
Definition: IssueReporting.h:33
Class that holds an RGBA color with 8-bits per component.
Definition: Color.h:16
static const Color sDarkRed
Definition: Color.h:51
uint8 b
Blue channel.
Definition: Color.h:73
static const Color sBlack
Predefined colors.
Definition: Color.h:50
uint32 mU32
Combined value for red, green, blue and alpha.
Definition: Color.h:68
static const Color sBlue
Definition: Color.h:56
constexpr Color(ColorArg inRHS, uint8 inAlpha)
Definition: Color.h:24
static const Color sPurple
Definition: Color.h:58
static const Color sGreen
Definition: Color.h:54
static const Color sWhite
Definition: Color.h:64
Color()=default
Constructors.
uint8 a
Alpha channel.
Definition: Color.h:74
constexpr Color(uint32 inColor)
Definition: Color.h:22
static const Color sDarkOrange
Definition: Color.h:61
uint8 g
Green channel.
Definition: Color.h:72
static const Color sLightGrey
Definition: Color.h:63
static const Color sOrange
Definition: Color.h:60
static const Color sDarkBlue
Definition: Color.h:55
Color(const Color &inRHS)=default
Vec4 ToVec4() const
Convert to Vec4 with range [0, 1].
Definition: Color.h:41
uint8 r
Red channel.
Definition: Color.h:71
static const Color sDarkGreen
Definition: Color.h:53
static const Color sGrey
Definition: Color.h:62
static const Color sCyan
Definition: Color.h:59
uint32 GetUInt32() const
Convert to uint32.
Definition: Color.h:31
static const Color sRed
Definition: Color.h:52
static const Color sYellow
Definition: Color.h:57
uint8 GetIntensity() const
Get grayscale intensity of color.
Definition: Color.h:44
constexpr Color(uint8 inRed, uint8 inGreen, uint8 inBlue, uint8 inAlpha=255)
Definition: Color.h:23