Jive reference manual
List of all members | Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes
jem::gl::Color Class Reference

#include <jem/gl/Color.h>

Classes

struct  Def
 

Public Member Functions

 Color (GLfloat c=0.0)
 
 Color (const GLfloat *c)
 
 Color (GLfloat r, GLfloat g, GLfloat b, GLfloat a=1.0)
 
 Color (const Color &rhs)
 
Coloroperator= (const Color &rhs)
 
template<class I >
GLfloat & operator[] (I i)
 
template<class I >
GLfloat operator[] (I i) const
 
GLfloat r () const
 
GLfloat g () const
 
GLfloat b () const
 
GLfloat a () const
 
bool isOpaque () const
 
GLfloat * addr ()
 
const GLfloat * addr () const
 
bool findName (String &name, double eps=0.01) const
 
String toString () const
 
bool configure (const String &name, const Properties &props)
 
void getConfig (const String &name, const Properties &conf) const
 

Static Public Member Functions

static Color black ()
 
static Color blue ()
 
static Color brown ()
 
static Color cyan ()
 
static Color gold ()
 
static Color gray ()
 
static Color green ()
 
static Color magenta ()
 
static Color orange ()
 
static Color pink ()
 
static Color purple ()
 
static Color red ()
 
static Color shadow ()
 
static Color silver ()
 
static Color steel ()
 
static Color titanium ()
 
static Color violet ()
 
static Color white ()
 
static Color yellow ()
 
static Color random ()
 
static Color parse (const String &str)
 
static Color byName (const String &name)
 
static String getChoice ()
 

Static Public Attributes

static const Def DEFS []
 
static const GLfloat OPAQUE_ALPHA
 

Constructor & Destructor Documentation

jem::gl::Color::Color ( GLfloat  c = 0.0)
explicit
jem::gl::Color::Color ( const GLfloat *  c)
explicit
jem::gl::Color::Color ( GLfloat  r,
GLfloat  g,
GLfloat  b,
GLfloat  a = 1.0 
)
jem::gl::Color::Color ( const Color rhs)

Member Function Documentation

Color & jem::gl::Color::operator= ( const Color rhs)
template<class I >
GLfloat & jem::gl::Color::operator[] ( i)
template<class I >
GLfloat jem::gl::Color::operator[] ( i) const
GLfloat jem::gl::Color::r ( ) const
GLfloat jem::gl::Color::g ( ) const
GLfloat jem::gl::Color::b ( ) const
GLfloat jem::gl::Color::a ( ) const
bool jem::gl::Color::isOpaque ( ) const
GLfloat * jem::gl::Color::addr ( )
const GLfloat * jem::gl::Color::addr ( ) const
static Color jem::gl::Color::black ( )
static
static Color jem::gl::Color::blue ( )
static
static Color jem::gl::Color::brown ( )
static
static Color jem::gl::Color::cyan ( )
static
static Color jem::gl::Color::gold ( )
static
static Color jem::gl::Color::gray ( )
static
static Color jem::gl::Color::green ( )
static
static Color jem::gl::Color::magenta ( )
static
static Color jem::gl::Color::orange ( )
static
static Color jem::gl::Color::pink ( )
static
static Color jem::gl::Color::purple ( )
static
static Color jem::gl::Color::red ( )
static
static Color jem::gl::Color::shadow ( )
static
static Color jem::gl::Color::silver ( )
static
static Color jem::gl::Color::steel ( )
static
static Color jem::gl::Color::titanium ( )
static
static Color jem::gl::Color::violet ( )
static
static Color jem::gl::Color::white ( )
static
static Color jem::gl::Color::yellow ( )
static
static Color jem::gl::Color::random ( )
static
static Color jem::gl::Color::parse ( const String str)
static
static Color jem::gl::Color::byName ( const String name)
static
static String jem::gl::Color::getChoice ( )
static
bool jem::gl::Color::findName ( String name,
double  eps = 0.01 
) const
String jem::gl::Color::toString ( ) const
bool jem::gl::Color::configure ( const String name,
const Properties props 
)
void jem::gl::Color::getConfig ( const String name,
const Properties conf 
) const

Member Data Documentation

const Def jem::gl::Color::DEFS[]
static
const GLfloat jem::gl::Color::OPAQUE_ALPHA
static