GG::Clr Struct Reference

A simple 32-bit structure that can act as a packed 32-bit unsigned integer representation of a RGBA color, a vector of the four unsigned bytes that compose an RGBA color, or the individual unsigned bytes "a", "r", "g", and "b". More...

#include <Clr.h>

List of all members.

Public Attributes

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

Structors



 Clr ()
 Clr (unsigned char r_, unsigned char g_, unsigned char b_, unsigned char a_)


Detailed Description

A simple 32-bit structure that can act as a packed 32-bit unsigned integer representation of a RGBA color, a vector of the four unsigned bytes that compose an RGBA color, or the individual unsigned bytes "a", "r", "g", and "b".

You should not use literals to initialize Color objects; depending on the endian-ness of the machine, 0x00FFFFFF would be transparent white (little-endian) or opaque yellow (big-endian).

Definition at line 62 of file Clr.h.


Constructor & Destructor Documentation

GG::Clr::Clr (  )  [inline]

default ctor

Definition at line 66 of file Clr.h.

GG::Clr::Clr ( unsigned char  r_,
unsigned char  g_,
unsigned char  b_,
unsigned char  a_ 
) [inline]

ctor that constructs a Clr from four ints that represent the color channels

Definition at line 71 of file Clr.h.


Member Data Documentation

unsigned char GG::Clr::r

the red channel

Definition at line 79 of file Clr.h.

Referenced by GG::operator==().

unsigned char GG::Clr::g

the green channel

Definition at line 80 of file Clr.h.

Referenced by GG::operator==().

unsigned char GG::Clr::b

the blue channel

Definition at line 81 of file Clr.h.

Referenced by GG::operator==().

unsigned char GG::Clr::a

the alpha channel

Definition at line 82 of file Clr.h.

Referenced by GG::operator==().


The documentation for this struct was generated from the following file:

Generated on Sat Mar 26 07:08:37 2011 for GG by  doxygen 1.5.9