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