D3DMCOLORVALUE (Windows Embedded CE 6.0)

1/6/2010

This structure describes color values. It is used for lighting parameters that may be over or under saturated. The values of the members can be either fixed point or floating point.

Syntax

typedef struct _D3DMCOLORVALUE {
  D3DMVALUE r;
  D3DMVALUE g;
  D3DMVALUE b;
  D3DMVALUE a;
} D3DMCOLORVALUE;

Members

  • r
    A D3DMVALUE value specifying the color's red component.
  • g
    A D3DMVALUE value specifying the color's green component.
  • b
    A D3DMVALUE value specifying the color's blue component.
  • a
    A D3DMVALUE value specifying the color's alpha value, transparency.

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 d3dmtypes.h
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

Direct3D Mobile Structures