Stg::Color Class Reference

#include <stage.hh>

List of all members.

Public Member Functions

 Color (double r, double g, double b, double a=1.0)
 Color (const std::string &name)
 Color ()
void GLSet (void)
const ColorLoad (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]
const Color & Color::Load ( Worldfile wf,
int  entity 
)
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

double Stg::Color::g
double Stg::Color::r

The documentation for this class was generated from the following files: