mirror of
https://github.com/edubart/otclient.git
synced 2025-10-20 06:23:26 +02:00
make otml simpler and easier to use, improve error handling/exceptions
This commit is contained in:
@@ -9,7 +9,7 @@ typedef uint32 RGBA;
|
||||
class Color
|
||||
{
|
||||
public:
|
||||
Color() : color(0) { }
|
||||
Color() : color(0xFFFFFFFF) { }
|
||||
Color(uint8 r, uint8 g, uint8 b, uint8 a = 0xFF) : color(((a & 0xff)<<24) | ((b & 0xff)<<16) | ((g & 0xff)<<8) | (r & 0xff)) { }
|
||||
Color(const Color& other) : color(other.color) { }
|
||||
Color(RGBA rgba) : color(rgba) { }
|
||||
|
Reference in New Issue
Block a user