From 51d8b9092953588d9af9296641488c403d5a7d6a Mon Sep 17 00:00:00 2001 From: Luke Street Date: Mon, 29 Aug 2022 12:44:40 -0400 Subject: [PATCH] CGX: Add operator!= for GXColor --- Runtime/Graphics/GX.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Runtime/Graphics/GX.hpp b/Runtime/Graphics/GX.hpp index a66c7f9c3..27a6a898b 100644 --- a/Runtime/Graphics/GX.hpp +++ b/Runtime/Graphics/GX.hpp @@ -19,6 +19,9 @@ constexpr GXColor GX_CLEAR{0, 0, 0, 0}; inline bool operator==(const GXColor& lhs, const GXColor& rhs) noexcept { return lhs.r == rhs.r && lhs.g == rhs.g && lhs.b == rhs.b && lhs.a == rhs.a; } +inline bool operator!=(const GXColor& lhs, const GXColor& rhs) noexcept { + return !(lhs == rhs); +} static inline void GXPosition3f32(const zeus::CVector3f& v) { GXPosition3f32(v.x(), v.y(), v.z()); } static inline void GXNormal3f32(const zeus::CVector3f& v) { GXNormal3f32(v.x(), v.y(), v.z()); }