#include <Shapes.h>
|
float | r |
|
float | g |
|
float | b |
|
float | a |
|
CColor::CColor |
( |
float |
cr, |
|
|
float |
cg, |
|
|
float |
cb, |
|
|
float |
ca |
|
) |
| |
|
inline |
const float* CColor::FloatArray |
( |
| ) |
const |
|
inline |
bool CColor::operator!= |
( |
const CColor & |
color | ) |
const |
|
inline |
bool CColor::operator== |
( |
const CColor & |
color | ) |
const |
bool CColor::ParseString |
( |
const CStr8 & |
Value, |
|
|
int |
DefaultAlpha = 255 |
|
) |
| |
Try to parse Value
as a color.
Returns true on success, false otherwise.
- Parameters
-
Value | Should be "r g b" or "r g b a" where each value is an integer in [0,255]. |
DefaultAlpha | The alpha value that is used if the format of Value is "r g b". |
The documentation for this struct was generated from the following files: