Public Member Functions

a5::Color Class Reference
[Color]

Stores and converts colors. More...

#include <Color.hpp>

List of all members.

Public Member Functions

 Color ()
 Creates a color, initialized to transparent black.
 Color (unsigned int c)
 Maps an integer to a color.
 Color (ALLEGRO_COLOR c)
 Wraps an Allegro color structure.
 operator ALLEGRO_COLOR () const
 Returns the Allegro color structure.
bool operator== (const Color &b) const
 Compares Color objects.

Detailed Description

Stores and converts colors.


Constructor & Destructor Documentation

a5::Color::Color (  ) 

Creates a color, initialized to transparent black.

a5::Color::Color ( unsigned int  c  ) 

Maps an integer to a color.

a5::Color::Color ( ALLEGRO_COLOR  c  ) 

Wraps an Allegro color structure.


Member Function Documentation

a5::Color::operator ALLEGRO_COLOR (  )  const

Returns the Allegro color structure.

bool a5::Color::operator== ( const Color b  )  const

Compares Color objects.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Defines