aboutsummaryrefslogtreecommitdiff
path: root/include/mglpp/graphics/Color.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mglpp/graphics/Color.hpp')
-rw-r--r--include/mglpp/graphics/Color.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/mglpp/graphics/Color.hpp b/include/mglpp/graphics/Color.hpp
index 0d0ac15..1cade84 100644
--- a/include/mglpp/graphics/Color.hpp
+++ b/include/mglpp/graphics/Color.hpp
@@ -9,6 +9,17 @@ namespace mgl {
}
+ bool operator == (const Color &other) const {
+ return r == other.r
+ && g == other.g
+ && b == other.b
+ && a == other.a;
+ }
+
+ bool operator != (const Color &other) const {
+ return !(operator==(other));
+ }
+
uint8_t r, g, b, a;
};
}