[DEV] add cpacity at color

This commit is contained in:
Edouard DUPIN 2013-01-01 21:55:41 +01:00
parent 4a997e47d5
commit 404b68ec9f

View File

@ -46,6 +46,13 @@ namespace draw {
a(0.0)
{
}
Colorf(float _r, float _g, float _b, float _a)
{
r = _r;
g = _g;
b = _b;
a = _a;
}
Colorf(draw::Color& _input)
{
@ -66,6 +73,14 @@ namespace draw {
a = (float)_input.a / 255.0;
return *this;
};
Colorf & operator=(const draw::Colorf& _input)
{
r = _input.r;
g = _input.g;
b = _input.b;
a = _input.a;
return *this;
};
};
void ParseColor(const char* _input, struct agg::rgba8& color);