From 6d5787d8da9ad1685864668dd4c3d6aa73a563db Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 5 Nov 2021 12:14:59 +0800 Subject: TextMeshGenerator --- Runtime/Graphics/Color.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Runtime/Graphics/Color.h') diff --git a/Runtime/Graphics/Color.h b/Runtime/Graphics/Color.h index 41ca2a4..043590b 100644 --- a/Runtime/Graphics/Color.h +++ b/Runtime/Graphics/Color.h @@ -40,6 +40,12 @@ namespace Internal this->b = b; this->a = a; } + + bool operator !=(const Color32& col) + { + return !(r == col.r && g == col.g && b == col.b && a == col.a); + } + unsigned char r, g, b, a; static const Color32 white; -- cgit v1.1-26-g67d0