[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r3837 - trunk/pingus/src/math
From: |
grumbel at BerliOS |
Subject: |
[Pingus-CVS] r3837 - trunk/pingus/src/math |
Date: |
Wed, 16 Jul 2008 15:43:12 +0200 |
Author: grumbel
Date: 2008-07-16 15:43:11 +0200 (Wed, 16 Jul 2008)
New Revision: 3837
Modified:
trunk/pingus/src/math/color.hpp
Log:
Added operator==
Modified: trunk/pingus/src/math/color.hpp
===================================================================
--- trunk/pingus/src/math/color.hpp 2008-07-16 13:42:53 UTC (rev 3836)
+++ trunk/pingus/src/math/color.hpp 2008-07-16 13:43:11 UTC (rev 3837)
@@ -35,6 +35,14 @@
Color(uint8_t r_, uint8_t g_, uint8_t b_, uint8_t a_ = 255)
: r(r_), g(g_), b(b_), a(a_)
{}
+
+ bool operator==(const Color& rhs) const {
+ return
+ r == rhs.r &&
+ g == rhs.g &&
+ b == rhs.b &&
+ a == rhs.a;
+ }
};
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r3837 - trunk/pingus/src/math,
grumbel at BerliOS <=