#include <CRGBColor.h>
Public Member Functions | |
| CRGBColor () | |
| default constructor | |
| void | SetRGB (const zfloat &a, const zfloat &r, const zfloat &g, const zfloat &b) |
| assigns ARGB values | |
| zushort | GetRGB1555 () |
| return a unsigned short in the 1555 format | |
Public Attributes | |
| zfloat | A |
| Alpha channel. | |
| zfloat | R |
| Red. | |
| zfloat | G |
| Green. | |
| zfloat | B |
| Blue. | |
rgb color object management
the color is in the format 32-bit ARGB (each value is in the range [0,1]
the class provides the utility for bit depth conversion.
|
|
default constructor
|
|
|
return a unsigned short in the 1555 format
|
|
||||||||||||||||||||
|
assigns ARGB values
|
|
|
Alpha channel.
|
|
|
Blue.
|
|
|
Green.
|
|
|
Red.
|