GG: GG::Clr Struct Reference

GG

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Attributes | List of all members
GG::Clr Struct Reference

`#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_)

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

## Constructor & Destructor Documentation

GG::Clr::Clr | ( |  | ) |
| inline

default ctor

Definition at line 49 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 54 of file Clr.h.

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

- Clr.h