libcvd
|
A 32-bit colour. More...
#include <rgb8.h>
Public Member Functions | |
Rgb8 () | |
Default constructor. Sets all elements to zero. | |
Rgb8 (unsigned char r, unsigned char g, unsigned char b, unsigned char a=0) | |
Construct an Rgb8 as specified. More... | |
Public Attributes | |
unsigned char | red |
The red component. | |
unsigned char | green |
The green component. | |
unsigned char | blue |
The blue component. | |
unsigned char | dummy |
The 4th byte, usually either ignored or used to represent the alpha value. | |
A 32-bit colour.
Deprecated The templated Rgba should be used instead (Rgba<byte> is exactly equivalent).
|
inlineexplicit |
Construct an Rgb8 as specified.
r | The red component |
g | The green component |
b | The blue component |
a | The dummy byte (defaults to zero) |