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 () | |
Initialize a color object (contents undefined). | |
csColor4 (float r, float g, float b, float a=1.0f) | |
Initialize a color object with given R,G,B,A components. | |
void | Set (const csColor &c) |
Set color to given color. | |
void | Set (float r, float g, float b) |
Set color to given R,G,B components. | |
csColor4 & | operator= (const csColor4 &c) |
Assign one color object to another. | |
csColor4 & | operator= (const csColor &c) |
Assign one color object to another/. | |
csColor4 & | operator *= (float f) |
Multiply this color by a scalar value. | |
csColor4 & | operator+= (const csColor4 &c) |
Add another color to this one. | |
csColor4 & | operator+= (const csColor &c) |
Add another color to this one. | |
csColor4 & | operator-= (const csColor4 &c) |
Subtract another color to this one. | |
csColor & | operator-= (const csColor &c) |
Subtract another color to this one. | |
bool | operator== (const csColor4 &c) const |
Compare equality of two colors. | |
bool | operator!= (const csColor4 &c) const |
Compare inequality of two colors. | |
Public Attributes | |
float | alpha |
Alpha value. |
Detailed Description
A class used to represent a color in RGBA space.
Definition at line 107 of file cscolor.h.
Constructor & Destructor Documentation
|
Initialize a color object (contents undefined).
|
|
Initialize a color object with given R,G,B,A components.
Definition at line 116 of file cscolor.h. References alpha. |
Member Function Documentation
|
Multiply this color by a scalar value.
Reimplemented from csColor. Definition at line 154 of file cscolor.h. References alpha. |
|
Compare inequality of two colors.
Definition at line 172 of file cscolor.h. References alpha, csColor::blue, csColor::green, and csColor::red. |
|
Add another color to this one.
Reimplemented from csColor. Definition at line 160 of file cscolor.h. References csColor::blue, csColor::green, and csColor::red. |
|
Add another color to this one.
Definition at line 157 of file cscolor.h. References alpha, csColor::blue, csColor::green, and csColor::red. |
|
Subtract another color to this one.
Reimplemented from csColor. Definition at line 166 of file cscolor.h. References csColor::blue, csColor::green, and csColor::red. |
|
Subtract another color to this one.
Definition at line 163 of file cscolor.h. References alpha, csColor::blue, csColor::green, and csColor::red. |
|
Assign one color object to another/.
Reimplemented from csColor. Definition at line 151 of file cscolor.h. References alpha, csColor::blue, csColor::green, and csColor::red. |
|
Assign one color object to another.
Definition at line 148 of file cscolor.h. References alpha, csColor::blue, csColor::green, and csColor::red. |
|
Compare equality of two colors.
Definition at line 169 of file cscolor.h. References alpha, csColor::blue, csColor::green, and csColor::red. |
|
Set color to given R,G,B components.
Reimplemented from csColor. Definition at line 133 of file cscolor.h. References alpha. |
|
Set color to given color.
Reimplemented from csColor. Definition at line 119 of file cscolor.h. References alpha, csColor::blue, csColor::green, and csColor::red. |
Member Data Documentation
|
Alpha value.
Definition at line 111 of file cscolor.h. Referenced by csColor4(), operator *=(), operator!=(), operator+=(), operator-=(), operator=(), operator==(), and Set(). |
The documentation for this class was generated from the following file:
- csutil/cscolor.h
Generated for Crystal Space by doxygen 1.3.9.1