RGB_GETRED

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

Retrieves the red component of a D3DCOLOR value.

·Returns the red component.

rgb

Color index from which the red component is retrieved.