Public Member Functions |
Static Public Member Functions |
Public Attributes |
Static Public Attributes
Stg::Color Class Reference
#include <stage.hh>
Public Member Functions | |
Color (double r, double g, double b, double a=1.0) | |
Color (const std::string &name) | |
Color () | |
void | GLSet (void) |
const Color & | Load (Worldfile *wf, int entity) |
bool | operator!= (const Color &other) const |
bool | operator== (const Color &other) const |
void | Print (const char *prefix) const |
Static Public Member Functions | |
static Color | RandomColor () |
Public Attributes | |
double | a |
double | b |
static const Color | cyan |
double | g |
static const Color | green |
static const Color | magenta |
double | r |
static const Color | red |
static const Color | yellow |
Static Public Attributes | |
static const Color | blue |
Constructor & Destructor Documentation
Color::Color | ( | double | r, |
double | g, | ||
double | b, | ||
double | a = 1.0 |
||
) |
Color::Color | ( | const std::string & | name | ) |
Look up the color in the X11-style database. If the color is not found in the database, a cheerful red color will be used instead.
Color::Color | ( | ) |
Member Function Documentation
void Stg::Color::GLSet | ( | void | ) | [inline] |
bool Color::operator!= | ( | const Color & | other | ) | const |
bool Color::operator== | ( | const Color & | other | ) | const |
void Color::Print | ( | const char * | prefix | ) | const |
Color Color::RandomColor | ( | ) | [static] |
Member Data Documentation
double Stg::Color::a |
double Stg::Color::b |
const Color Color::blue [static] |
convenient constants
const Color Color::cyan |
double Stg::Color::g |
const Color Color::green |
const Color Color::magenta |
double Stg::Color::r |
const Color Color::red |
const Color Color::yellow |
The documentation for this class was generated from the following files:
Generated on Thu Dec 29 2011 16:43:39 for Stage by 1.7.5.1