RGBA_MAKE

RGBA_MAKE(r, g, b, a) \

((D3DCOLOR) (((a) << 24) | ((r) << 16) | ((g) << 8) | (b)))

Creates an RGBA D3DCOLOR value from supplied red, green, blue, and alpha components.

·Returns the color.

r, g, b, and a

Red, green, blue, and alpha components of the RGBA color to be created.