#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 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
 
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]

Color::Color ( double r,
double g,
double b,
double a = 1.0 )
explicit

◆ Color() [2/3]

Color::Color ( const std::string & name)
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()

void Stg::Color::GLSet ( void )
inline

◆ Load()

const Color & Color::Load ( Worldfile * wf,
int entity )

◆ 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()

Color Color::RandomColor ( )
static

Member Data Documentation

◆ a

double Stg::Color::a

◆ b

double Stg::Color::b

◆ blue

const Color Color::blue
static

convenient constants

◆ cyan

const Color Color::cyan
static

◆ g

double Stg::Color::g

◆ green

const Color Color::green
static

◆ magenta

const Color Color::magenta
static

◆ r

double Stg::Color::r

◆ red

const Color Color::red
static

◆ yellow

const Color Color::yellow
static

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