[DEV] add cpacity at color
This commit is contained in:
parent
4a997e47d5
commit
404b68ec9f
15
draw/Color.h
15
draw/Color.h
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user