Implemented sf::Color::toInteger() to complement the new sf::Color constructor.

This commit is contained in:
Lukas Dürrenberger 2015-02-11 12:09:33 +01:00
parent 88ec48cb85
commit 1f2bc148fe
2 changed files with 17 additions and 2 deletions

View file

@ -78,6 +78,13 @@ a((color & 0x000000ff) >> 0 )
}
////////////////////////////////////////////////////////////
Uint32 Color::toInteger()
{
return (r << 24) | (g << 16) | (b << 8) | a;
}
////////////////////////////////////////////////////////////
bool operator ==(const Color& left, const Color& right)
{