Delete old rgb_color operators that are no longer needed.

This commit is contained in:
Augustin Cavalier
2015-02-28 12:54:31 -05:00
parent ba155ed840
commit 7dc141827a
2 changed files with 0 additions and 49 deletions
-26
View File
@@ -52,32 +52,6 @@ All rights reserved.
namespace BExperimental {
// Comparison operators.
inline bool operator==(const rgb_color c1, const rgb_color c2)
{
return (*((uint32*)&c1)) == (*((uint32*)&c2));
}
inline bool operator!=(const rgb_color c1, const rgb_color c2)
{
return (*((uint32*)&c1)) != (*((uint32*)&c2));
}
#ifndef __HAIKU__
// Color creation.
inline rgb_color make_color(uint8 red, uint8 green, uint8 blue, uint8 alpha=255)
{
rgb_color c;
c.red = red;
c.green = green;
c.blue = blue;
c.alpha = alpha;
return c;
}
#endif
// Mix two colors together, ignoring their relative alpha channels.
// If amount is 0, the result is color1; if 255, the result is color2;
// if another value, it is somewhere in-between. The resulting alpha