mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Added comparison operator to RgbColor.
This commit is contained in:
parent
b66c397a46
commit
5010b9ce8e
@ -21,6 +21,10 @@ struct RgbColor
|
|||||||
static RgbColor YELLOW;
|
static RgbColor YELLOW;
|
||||||
static RgbColor WHITE;
|
static RgbColor WHITE;
|
||||||
|
|
||||||
|
inline bool operator==(const RgbColor& other) const
|
||||||
|
{
|
||||||
|
return red == other.red && green == other.green && blue == other.blue;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
static_assert(sizeof(RgbColor) == 3, "Incorrect size of RgbColor");
|
static_assert(sizeof(RgbColor) == 3, "Incorrect size of RgbColor");
|
||||||
|
Loading…
Reference in New Issue
Block a user