#include <sgColor.h>
Public Member Functions | |
sgColor (unsigned char r_=0, unsigned char g_=0, unsigned char b_=0) | |
bool | operator== (const sgColor &other) |
Public Attributes | |
unsigned char | r |
unsigned char | g |
unsigned char | b |
Color class. Stores a color without alpha channel with values between 0 and 255 and provides functionality for it.
sgColor::sgColor | ( | unsigned char | r_ = 0 , |
|
unsigned char | g_ = 0 , |
|||
unsigned char | b_ = 0 | |||
) |
Constructor. Initializes a new instance.
r_ | the r value | |
g_ | the g value | |
b_ | the b value |
bool sgColor::operator== | ( | const sgColor & | other | ) |
Equal. Checks if two instances equal each other.
unsigned char sgColor::b |
Blue. The colors blue component.
unsigned char sgColor::g |
Green. The colors green component.
unsigned char sgColor::r |
Red. The colors red component.