SpikeStream Library
0.2
|
#include <RGBColor.h>
Public Member Functions | |
RGBColor () | |
RGBColor (float red, float green, float blue) | |
RGBColor (const RGBColor &rgbColor) | |
RGBColor & | operator= (const RGBColor &rhs) |
void | set (float red, float green, float blue) |
Public Attributes | |
float | red |
float | green |
float | blue |
Static Public Attributes | |
static RGBColor | BLACK = RGBColor(0.0f, 0.0f, 0.0f) |
A simple RGB color class.
Definition at line 7 of file RGBColor.h.
Default constructor
Definition at line 9 of file RGBColor.cpp.
RGBColor::RGBColor | ( | float | red, |
float | green, | ||
float | blue | ||
) |
Standard constructor
Definition at line 17 of file RGBColor.cpp.
RGBColor::RGBColor | ( | const RGBColor & | rgbColor | ) |
Copy constructor
Definition at line 25 of file RGBColor.cpp.
Assignment operator
Definition at line 37 of file RGBColor.cpp.
void RGBColor::set | ( | float | red, |
float | green, | ||
float | blue | ||
) |
Sets the colour.
Definition at line 50 of file RGBColor.cpp.
RGBColor RGBColor::BLACK = RGBColor(0.0f, 0.0f, 0.0f) [static] |
Definition at line 17 of file RGBColor.h.
Definition at line 22 of file RGBColor.h.
Definition at line 21 of file RGBColor.h.
Definition at line 20 of file RGBColor.h.