projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6034c8f
)
you can compare colors now
author
Matthias Braun
<matze@braunis.de>
Sat, 26 May 2007 16:43:52 +0000
(16:43 +0000)
committer
Matthias Braun
<matze@braunis.de>
Sat, 26 May 2007 16:43:52 +0000
(16:43 +0000)
SVN-Revision: 5028
src/video/color.hpp
patch
|
blob
|
history
diff --git
a/src/video/color.hpp
b/src/video/color.hpp
index
391c929
..
e94b362
100644
(file)
--- a/
src/video/color.hpp
+++ b/
src/video/color.hpp
@@
-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