diff options
Diffstat (limited to 'src/graphics/core/color.h')
-rw-r--r-- | src/graphics/core/color.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/graphics/core/color.h b/src/graphics/core/color.h index 6973644..0e08de3 100644 --- a/src/graphics/core/color.h +++ b/src/graphics/core/color.h @@ -18,7 +18,6 @@ #pragma once - #include <sstream> @@ -66,6 +65,11 @@ struct Color { return r == other.r && g == other.g && b == other.b && a == other.a; } + + inline bool operator!=(const Gfx::Color &other) const + { + return ! this->operator==(other); + } }; /** |