GG
|
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>
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_) |
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).
GG::Clr::Clr | ( | unsigned char | r_, |
unsigned char | g_, | ||
unsigned char | b_, | ||
unsigned char | a_ | ||
) | [inline] |