Code: Select all
//! Compares the color to another color.
//! \return Returns true if the colors are the same, and false if not.
inline bool operator==(const SColorf& other) const { return ( other.r==r&&other.g==g&&other.b==b&&other.a==a ); }
//! Compares the color to another color.
//! \return Returns true if the colors are different, and false if they are the same.
inline bool operator!=(const SColorf& other) const { return ( other.r!=r&&other.g!=g&&other.b!=b&&other.a!=a ); }