13#ifdef LIBCARLA_INCLUDED_FROM_UE4
15#include "Math/Color.h"
45 return (
r == rhs.
r) && (
g == rhs.
g) && (
b == rhs.
b) && (
a == rhs.
a);
49 return !(*
this == rhs);
52#ifdef LIBCARLA_INCLUDED_FROM_UE4
55 :
FloatColor(color.
R / 255.f, color.G / 255.f, color.B / 255.f, color.A / 255.f) {}
63 static_cast<uint8
>(
r * 255),
64 static_cast<uint8
>(
g * 255),
65 static_cast<uint8
>(
b * 255),
66 static_cast<uint8
>(
a * 255)};
69 operator FLinearColor()
const {
70 return FLinearColor{
r,
g,
b,
a };
MSGPACK_DEFINE_ARRAY(r, g, b, a)
FloatColor & operator=(const FloatColor &)=default
bool operator!=(const FloatColor &rhs) const
bool operator==(const FloatColor &rhs) const
FloatColor(const FloatColor &)=default
FloatColor(float r, float g, float b, float a=1.f)
FloatColor(const FColor &color)
FloatColor(const FLinearColor &color)