3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
You use an RGB color structure to specify a color. The RGB color structure is defined by the TQ3ColorRGB data type.
typedef struct TQ3ColorRGB {
float r; /*red component*/
float g; /*green component*/
float b; /*blue component*/
} TQ3ColorRGB;
You use an ARGB color structure to specify a color together with an alpha channel. The ARGB color structure is defined by the TQ3ColorARGB data type.
typedef struct TQ3ColorARGB {
float a; /*alpha channel*/
float r; /*red component*/
float g; /*green component*/
float b; /*blue component*/
} TQ3ColorARGB;
Previous | QD3D Book | Overview | Chapter Contents | Next |