Microsoft DirectX 8.1 (C++)

D3DCOLORVALUE

Describes color values.

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

Members

r, g, b, and a
Floating-point values specifying the red, green, blue, and alpha components of a color. These values generally are in the range from 0.0 through 1.0, with 0.0 being black.

Remarks

You can set the members of this structure to values outside the range of 0 through 1 to implement some unusual effects. Values greater than 1 produce strong lights that tend to wash out a scene. Negative values produce dark lights that actually remove light from a scene.

Requirements

  Header: Declared in D3d8types.h.

See Also

Color Values for Lights and Materials