Commit 2694b455 authored by Mathias Goldau's avatar Mathias Goldau
Browse files

[ADD] WColor enhancement: Some default colors as static members added.

parent c6e6e38b
......@@ -223,3 +223,7 @@ bool WColor::operator!=( const WColor &rhs ) const
{
return !( *this == rhs );
}
const WColor WColor::green( 0.0, 1.0, 0.0, 1.0 );
const WColor WColor::red( 1.0, 0.0, 0.0, 1.0 );
const WColor WColor::blue( 0.0, 0.0, 1.0, 1.0 );
......@@ -128,6 +128,10 @@ public:
*/
bool operator!=( const WColor &rhs ) const;
static const WColor green; //!< Default for green
static const WColor red; //!< Default for red
static const WColor blue; //!< Default for blue
protected:
private:
float m_red; //!< Red channel
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment