Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

CRGBColor Class Reference

CRGBColor. More...

#include <CRGBColor.h>

List of all members.

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.


Detailed Description

CRGBColor.

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.


Constructor & Destructor Documentation

CRGBColor::CRGBColor  
 

default constructor


Member Function Documentation

zushort CRGBColor::GetRGB1555  
 

return a unsigned short in the 1555 format

void CRGBColor::SetRGB const zfloat   a,
const zfloat   r,
const zfloat   g,
const zfloat   b
 

assigns ARGB values


Member Data Documentation

zfloat CRGBColor::A
 

Alpha channel.

zfloat CRGBColor::B
 

Blue.

zfloat CRGBColor::G
 

Green.

zfloat CRGBColor::R
 

Red.


The documentation for this class was generated from the following files:


SourceForge.net Logo