UFO Shooter/OnScreenText.cpp
void ScreenText::setColor(unsigned int color)
{
	//Extract R G and B channels, mask with 0xff
	unsigned char
		r = (color >> 16) & 0xff,
		g = (color >> 8) & 0xff,
		b = (color >> 0) & 0xff;

	//Set the colour
	this->setColor(r, g, b);
}
/// <summary>
/// Sets the colour of the text to rendered.
/// </summary>
/// <param name="color">The RGB_888 integer representing a colour.</param>


Sets the colour of the text to rendered.

The RGB_888 integer representing a colour.
Sets the colour of the text to rendered . The RGB_888 integer representing a colour .
void ScreenText::setColor(unsigned int color)
{
	unsigned char
		r = (color >> 16) & 0xff,
		g = (color >> 8) & 0xff,
		b = (color >> 0) & 0xff;
	this->setColor(r, g, b);
}
void ScreenText :: setColor ( unsigned int color ) { unsigned char r = ( color >> 16 ) & 0xff , g = ( color >> 8 ) & 0xff , b = ( color >> 0 ) & 0xff ; this -> setColor ( r , g , b ) ; }
<summary>
Sets the colour of the text to rendered.
<summary > Sets the colour of the text to rendered .
//Extract R G and B channels, mask with 0xff
 //Set the colour
