#include <rgb.h>
Public Member Functions | |
RGBA () | |
Null constructor. | |
RGBA (const RGBA &c) | |
Copy constructor. | |
RGBA (T vr, T vg, T vb, T va) | |
Initialise from separate components. | |
void | operator+= (const RGBA &v) |
Colour addition. | |
void | operator-= (const RGBA &v) |
Colour subtraction. | |
Public Attributes | |
T | r |
Colour component. | |
T | g |
T | b |
T | a |
Direct access to class members is permitted. The uchar version is intended as a minimal class for efficient storage of colours. (However, padding means there is a wasted byte if we just want RGB so we might as well have an alpha channel).