RGBA_GETALPHA

RGBA_GETALPHA(rgb) ((rgb) >> 24)

Retrieves the alpha component of an RGBA D3DCOLOR value.

·Returns the alpha component.

rgb

Color index from which the alpha component is retrieved.