D3DRGBA(r, g, b, a) \
((((long)((a) * 255)) << 24) | (((long)((r) * 255)) << 16) |
(((long)((g) * 255)) << 8) | (long)((b) * 255))
Initializes a color with the supplied RGBA values.
·Returns the D3DCOLOR value corresponding to the supplied RGBA values.
r, g, b, and a
Red, green, blue, and alpha components of the color.