DirectX SDK

D3DXCOLOR

The D3DX_DEVICEDESC structure describes color values.

typedef struct D3DXCOLOR {
  FLOAT r, g, b, a;
} D3DXCOLOR;

Members

r
The red component of the color.
g
The green component of the color.
b
The blue component of the color.
a
The alpha component of the color.

Remarks

C++ programmers can take advantage of operator overloading and type casting. The C++ implementation of the D3DXCOLOR structure implements overloaded constructors and overloaded assignment, unary, and binary (including equality) operators. For more information, see C++ Specific Features.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Version: Requires DirectX 7.0.
  Header: Declared in d3dxmath.h.

See Also

D3DXColorNegative, D3DXColorAdd, D3DXColorSubtract, D3DXColorScale, D3DXColorModulate, D3DXColorLerp