Implemented sf::Color::toInteger() to complement the new sf::Color constructor.
This commit is contained in:
parent
88ec48cb85
commit
1f2bc148fe
2 changed files with 17 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue