D3DCOLORVALUE Structure

Stores color and alpha channel information.

Syntax

typedef struct _D3DCOLORVALUE {
    float r;
    float g;
    float b;
    float a;
} D3DCOLORVALUE;  

Members

r
The red value of the current color.

g
The green value of the current color.

b
The blue value of the current color.

a
The alpha channel value of the current color.

Remarks

These values generally are in the range from 0.0 through 1.0. A value of 0.0 indicates fully transparent, while a value of 1.0 indicates fully opaque.

Requirements

Header: Declared in d3d11_x.h (dxgitype.h on other Windows platforms).