Public Member Functions |
Static Public Member Functions |
Public Attributes |
Static Public Attributes |
List of all members
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 |
double | g |
double | r |
Static Public Attributes | |
static const Color | blue |
static const Color | cyan |
static const Color | green |
static const Color | magenta |
static const Color | red |
static const Color | yellow |
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
|
inline |
bool Color::operator!= | ( | const Color & | other | ) | const |
bool Color::operator== | ( | const Color & | other | ) | const |
void Color::Print | ( | const char * | prefix | ) | const |
|
static |
Member Data Documentation
double Stg::Color::a |
double Stg::Color::b |
|
static |
convenient constants
|
static |
double Stg::Color::g |
|
static |
|
static |
double Stg::Color::r |
|
static |
|
static |
The documentation for this class was generated from the following files:
Generated on Tue Jun 30 2015 00:47:22 for Stage by
