Colour Struct Reference

Colour container. More...

#include <Types/Colour.h>

List of all members.

Public Member Functions

 Colour ()
 Create a white colour.
 Colour (const unsigned char r, const unsigned char g, const unsigned char b, const unsigned char a=255)
 Create the colour from parameters.
 Colour (const unsigned int rgba)
 Create the colour from a 32bit representation (RGBA).
void setRGBA (const unsigned int rgba)
 Set the colour to rgba.

Public Attributes

unsigned char r
unsigned char g
unsigned char b
unsigned char a

Detailed Description

Colour container.

Contain a color in 32bit representation (8R ; 8G ; 8B ; 8A)


Constructor & Destructor Documentation

Colour::Colour ( const unsigned char  r,
const unsigned char  g,
const unsigned char  b,
const unsigned char  a = 255 
) [inline]

Create the colour from parameters.

Parameters:
r the red component
g the green component
b the blue component
a the alpha component
Colour::Colour ( const unsigned int  rgba  )  [inline]

Create the colour from a 32bit representation (RGBA).

Parameters:
rgba the colour

Member Data Documentation

unsigned char Colour::a

Alpha componant

unsigned char Colour::b

Blue componant

unsigned char Colour::g

Green componant

unsigned char Colour::r

Red componant


The documentation for this struct was generated from the following file:
 All Classes Functions Variables Typedefs
Generated on Thu Oct 6 22:11:38 2011 for WE_Kit by  doxygen 1.6.3