you can compare colors now
authorMatthias Braun <matze@braunis.de>
Sat, 26 May 2007 16:43:52 +0000 (16:43 +0000)
committerMatthias Braun <matze@braunis.de>
Sat, 26 May 2007 16:43:52 +0000 (16:43 +0000)
SVN-Revision: 5028

src/video/color.hpp

index 391c929..e94b362 100644 (file)
@@ -52,6 +52,12 @@ public:
 #endif
   }
 
+  bool operator==(const Color& other) const
+  {
+    return red == other.red && green == other.green && blue == other.blue
+           && alpha == other.alpha;
+  }
+
   void check_color_ranges()
   {
     if(red < 0 || red > 1.0 || green < 0 || green > 1.0