|
uint32 & | DWColor (void) |
|
const uint32 & | DWColor (void) const |
|
| operator const uint32 () const |
|
void | operator= (const uint32 color) |
|
void | operator= (const LinearColor &color) |
|
| Color (EnumForceInit) |
|
| Color (uint8 InR, uint8 InG, uint8 InB, uint8 InA=255) |
|
| Color (const LinearColor &C) |
|
| Color (uint32 InColor) |
|
std::string | ToRGBString () |
| "255 255 255"
|
|
std::string | ToRGBAString () |
| "255 255 255 255"
|
|
bool | operator== (const Color &C) const |
|
bool | operator!= (const Color &C) const |
|
void | operator+= (const Color &C) |
|
Color | MutiplyOpacity (float fOpacity) |
|
LinearColor | FromRGBE () const |
|
LinearColor | ReinterpretAsLinear () const |
| Reinterprets the color as a linear color. More...
|
|
|
union { |
struct { |
uint8 a |
|
uint8 r |
|
uint8 g |
|
uint8 b |
|
} | |
|
uint32 AlignmentDummy |
|
}; | |
|
|
static const Color | White |
| Some pre-inited colors, useful for debug code.
|
|
static const Color | Black |
|
static const Color | Red |
|
static const Color | Green |
|
static const Color | Blue |
|
static const Color | Yellow |
|
static const Color | Cyan |
|
static const Color | Magenta |
|
§ FromString()
Color ParaEngine::Color::FromString |
( |
const char * |
sColor | ) |
|
|
static |
- Parameters
-
sColor | RGBA or RGB "#ff000000" or "255 255 255 255" or "255 255 255" |
§ MakeRedToGreenColorFromScalar()
Color Color::MakeRedToGreenColorFromScalar |
( |
float |
Scalar | ) |
|
|
static |
Makes a color red->green with the passed in scalar (e.g.
0 is red, 1 is green)
§ ReinterpretAsLinear()
LinearColor ParaEngine::Color::ReinterpretAsLinear |
( |
| ) |
const |
|
inline |
Reinterprets the color as a linear color.
- Returns
- The linear color representation.
The documentation for this class was generated from the following files:
- Client/trunk/ParaEngineClient/math/ParaColor.h
- Client/trunk/ParaEngineClient/math/ParaColor.cpp