Back to index

extremetuxracer  0.5beta
Public Member Functions | Public Attributes | Static Public Attributes
pp::Color Class Reference

Color. More...

#include <color.h>

Collaboration diagram for pp::Color:
Collaboration graph

List of all members.

Public Member Functions

 Color (void)
 Color (const double red, const double green, const double blue, const double alpha=1.0)
 Color (const double *color)

Public Attributes

double r
double g
double b
double a

Static Public Attributes

static const pp::Color black
static const pp::Color white

Detailed Description


Definition at line 27 of file color.h.

Constructor & Destructor Documentation

pp::Color::Color ( void  ) [inline]

Definition at line 39 of file color.h.

: r(0.0), g(0.0), b(0.0), a(1.0){};
pp::Color::Color ( const double  red,
const double  green,
const double  blue,
const double  alpha = 1.0 

Definition at line 25 of file color.cpp.

 : r(red), g(green), b(blue), a(alpha)
pp::Color::Color ( const double *  color)

Definition at line 30 of file color.cpp.

 : r(color[0]), g(color[1]), b(color[2]), a(1.0)

Member Data Documentation

double pp::Color::a


Definition at line 37 of file color.h.

double pp::Color::b


Definition at line 35 of file color.h.

const Color pp::Color::black [static]

Definition at line 43 of file color.h.

double pp::Color::g


Definition at line 33 of file color.h.

double pp::Color::r


Definition at line 31 of file color.h.

const Color pp::Color::white [static]

Definition at line 44 of file color.h.

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