csColor4 Class Reference
A class used to represent a color in RGBA space. More...
#include <csutil/cscolor.h>
Inheritance diagram for csColor4:

Public Member Functions | |
csColor4 (float r, float g, float b, float a=1.0f) | |
Initialize a color object with given R,G,B,A components. | |
csColor4 () | |
Initialize a color object (contents undefined). | |
bool | operator!= (const csColor4 &c) const |
Compare inequality of two colors. | |
csColor4 & | operator*= (float f) |
Multiply this color by a scalar value. | |
csColor4 & | operator+= (const csColor &c) |
Add another color to this one. | |
csColor4 & | operator+= (const csColor4 &c) |
Add another color to this one. | |
csColor & | operator-= (const csColor &c) |
Subtract another color to this one. | |
csColor4 & | operator-= (const csColor4 &c) |
Subtract another color to this one. | |
csColor4 & | operator= (const csColor &c) |
Assign one color object to another/. | |
csColor4 & | operator= (const csColor4 &c) |
Assign one color object to another. | |
bool | operator== (const csColor4 &c) const |
Compare equality of two colors. | |
void | Set (float r, float g, float b) |
Set color to given R,G,B components. | |
void | Set (const csColor &c) |
Set color to given color. | |
Public Attributes | |
float | alpha |
Alpha value. |
Detailed Description
A class used to represent a color in RGBA space.Definition at line 155 of file cscolor.h.
Constructor & Destructor Documentation
csColor4::csColor4 | ( | ) | [inline] |
csColor4::csColor4 | ( | float | r, | |
float | g, | |||
float | b, | |||
float | a = 1.0f | |||
) | [inline] |
Member Function Documentation
bool csColor4::operator!= | ( | const csColor4 & | c | ) | const [inline] |
csColor4& csColor4::operator*= | ( | float | f | ) | [inline] |
bool csColor4::operator== | ( | const csColor4 & | c | ) | const [inline] |
void csColor4::Set | ( | float | r, | |
float | g, | |||
float | b | |||
) | [inline] |
void csColor4::Set | ( | const csColor & | c | ) | [inline] |
Member Data Documentation
float csColor4::alpha |
The documentation for this class was generated from the following file:
- csutil/cscolor.h
Generated for Crystal Space 1.4.0 by doxygen 1.5.8