Added a new constructor that takes single Uint32 to Color

This commit is contained in:
FRex 2014-10-10 17:34:55 +02:00 committed by Lukas Dürrenberger
parent 8dd31f2f52
commit 88ec48cb85
2 changed files with 19 additions and 0 deletions

View file

@ -61,6 +61,14 @@ public:
////////////////////////////////////////////////////////////
Color(Uint8 red, Uint8 green, Uint8 blue, Uint8 alpha = 255);
////////////////////////////////////////////////////////////
/// \brief Construct the color from 32 bit unsigned integer
///
/// \param color Number containing the RGBA components (in that order)
///
////////////////////////////////////////////////////////////
Color(Uint32 color);
////////////////////////////////////////////////////////////
// Static member data
////////////////////////////////////////////////////////////