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
The documentation for this struct was generated from the following file: