Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes

Stg::Color Class Reference

#include <stage.hh>

List of all members.

Public Member Functions

 Color (float r, float g, float b, float a=1.0)
 Color (const std::string &name)
 Color ()
bool 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

float a
float b
static const Color cyan
float g
static const Color green
static const Color magenta
float r
static const Color red
static const Color yellow

Static Public Attributes

static const Color blue

Constructor & Destructor Documentation

Color::Color ( float  r,
float  g,
float  b,
float  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

bool 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

const Color Color::blue [static]

convenient constants


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