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 () | |
Color (const std::string &name) | |
Color (double r, double g, double b, double a=1.0) | |
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() [1/3]
|
explicit |
◆ Color() [2/3]
|
explicit |
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() [3/3]
Color::Color | ( | ) |
Member Function Documentation
◆ GLSet()
|
inline |
◆ Load()
◆ operator!=()
bool Color::operator!= | ( | const Color & | other | ) | const |
◆ operator==()
bool Color::operator== | ( | const Color & | other | ) | const |
◆ Print()
void Color::Print | ( | const char * | prefix | ) | const |
◆ RandomColor()
|
static |
Member Data Documentation
◆ a
double Stg::Color::a |
◆ b
double Stg::Color::b |
◆ blue
|
static |
convenient constants
◆ cyan
|
static |
◆ g
double Stg::Color::g |
◆ green
|
static |
◆ magenta
|
static |
◆ r
double Stg::Color::r |
◆ red
|
static |
◆ yellow
|
static |
The documentation for this class was generated from the following files:
Generated on Wed Jan 27 2021 00:00:00 for Stage by