Microsoft DirectX 8.1 (C++)

D3DXCOLOR

Describes color values.

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

Members

r
Red component of the color.
g
Green component of the color.
b
Blue component of the color.
a
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

  Header: Declared in D3dx8math.h.