mx::__Color Union Reference

List of all members.

Public Member Functions

 __Color ()
 __Color (unsigned int v)
 __Color (unsigned char r, unsigned char g, unsigned char b)

Public Attributes

unsigned int value
unsigned char colors [4]


Detailed Description

hold 32bit RGBA value

Definition at line 39 of file mx_types.h.


Constructor & Destructor Documentation

mx::__Color::__Color (  )  [inline]

Default Constructor

Definition at line 46 of file mx_types.h.

References value.

00046 { value = 0; }

mx::__Color::__Color ( unsigned int  v  )  [inline]

Constructor set to 32bit integer value

Parameters:
v 32bit integer

Definition at line 50 of file mx_types.h.

References value.

00050 { value = v; }

mx::__Color::__Color ( unsigned char  r,
unsigned char  g,
unsigned char  b 
) [inline]

Constructor to set each byte of the RGBA value to

Parameters:
r Red Value
g Green Value
b Blue Value

Definition at line 56 of file mx_types.h.

References colors.

00057                 {
00058                         colors[0] = r, colors[1] = g, colors[2] = b;
00059                 }


Member Data Documentation

unsigned char mx::__Color::colors[4]

array of characters to assign any byte of the integer to a specific value

Definition at line 44 of file mx_types.h.

Referenced by __Color(), mx::Color::Color(), mx::Color::mapRGB(), mx::Color::operator=(), and mx::Color::toSDL_Color().

unsigned int mx::__Color::value

32bit unsigned integer value

Definition at line 42 of file mx_types.h.

Referenced by __Color(), mx::Color::Color(), mx::Color::operator=(), and mx::Color::toInteger().


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

Generated on Wed Jun 10 14:52:02 2009 for libmx by  doxygen 1.5.8