hgeColor Operators
The following operators are defined for hgeColor class:
hgeColor operator- (const hgeColor &c);
hgeColor operator+ (const hgeColor &c);
hgeColor operator* (float scalar);
hgeColor& operator= (const hgeColor &c);
hgeColor& operator-= (const hgeColor &c);
hgeColor& operator+= (const hgeColor &c);
hgeColor& operator*= (float scalar);
bool operator== (const hgeColor &c);
bool operator!= (const hgeColor &c);
So, you can use hgeColor objects in expressions like
color1 = color2 + color3 * 0.5f;
if(color1 != color2) color1 += color3;
Requirements
Header: hgecolor.h
|