SCV
4.2.1
Simple Components for Visual
|
Color class implementation. More...
#include <Color4f.h>
Public Member Functions | |
Color4f (void) | |
Color4f (float r, float g, float b, float a=1.f) | |
Color4f (const ColorRGBA &rhs) | |
Color4f | operator+ (float w) const |
Color4f | operator- (float w) const |
Color4f & | operator+= (float w) |
Color4f & | operator-= (float w) |
float & | operator[] (int index) |
const float & | operator[] (int index) const |
Static Public Member Functions | |
static Color4f | fromByte (unsigned char r, unsigned char g, unsigned char b, unsigned char a=255) |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const Color4f &rhs) |
Color class implementation.
|
explicit |
scv::Color4f::Color4f | ( | float | r, |
float | g, | ||
float | b, | ||
float | a = 1.f |
||
) |
scv::Color4f::Color4f | ( | const ColorRGBA & | rhs | ) |
|
inlinestatic |
scv::Color4f scv::Color4f::operator+ | ( | float | w | ) | const |
Color4f & scv::Color4f::operator+= | ( | float | w | ) |
scv::Color4f scv::Color4f::operator- | ( | float | w | ) | const |
Color4f & scv::Color4f::operator-= | ( | float | w | ) |
|
inline |
|
inline |
|
friend |