The D3DRGBA macro initializes a color with the supplied RGBA values.
D3DRGBA(r, g, b, a) \
((((long)((a) * 255)) << 24) | (((long)((r) * 255)) << 16) |
(((long)((g) * 255)) << 8) | (long)((b) * 255))
The macros returns the D3DCOLOR value corresponding to the supplied RGBA values.
Windows NT: Use version 4.0 or later.
Windows: Use Windows 95 or later. Available as a redistributable for Windows 95.
Windows CE: Unsupported.
Header: Declared in d3dtypes.h.