RGBA_GETRED

RGB_GETRED(rgb) (((rgb) >> 16) & 0xff)

Retrieves the red component of an RGBA D3DCOLOR value.

·Returns the red component.

rgb

Color index from which the red component is retrieved.