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", each of which represents a color channel. More...

#include <Clr.h>

List of all members.

Structors

 Clr ()
 Clr (GLubyte r_, GLubyte g_, GLubyte b_, GLubyte a_)

Public Attributes

GLubyte r
GLubyte g
GLubyte b
GLubyte 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", each of which represents a color channel.

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 44 of file Clr.h.


Constructor & Destructor Documentation

GG::Clr::Clr (  ) 

default ctor

GG::Clr::Clr ( GLubyte  r_,
GLubyte  g_,
GLubyte  b_,
GLubyte  a_ 
)

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


Member Data Documentation

GLubyte GG::Clr::r

the red channel

Definition at line 51 of file Clr.h.

GLubyte GG::Clr::g

the green channel

Definition at line 52 of file Clr.h.

GLubyte GG::Clr::b

the blue channel

Definition at line 53 of file Clr.h.

GLubyte GG::Clr::a

the alpha channel

Definition at line 54 of file Clr.h.


The documentation for this struct was generated from the following file:
Generated on Wed Mar 26 14:35:42 2008 for GG by  doxygen 1.5.2