mirror of
https://github.com/Kiritow/MiniEngine.git
synced 2024-03-22 13:11:22 +08:00
25 lines
283 B
C++
25 lines
283 B
C++
|
RGBA::RGBA()
|
||
|
{
|
||
|
r=g=b=a=0;
|
||
|
}
|
||
|
RGBA::RGBA(int incr,int incg,int incb,int inca)
|
||
|
{
|
||
|
r=incr;
|
||
|
g=incg;
|
||
|
b=incb;
|
||
|
a=inca;
|
||
|
}
|
||
|
SDL_Color RGBA::toSDLColor()
|
||
|
{
|
||
|
SDL_Color color;
|
||
|
color.r=r;
|
||
|
color.g=g;
|
||
|
color.b=b;
|
||
|
color.a=a;
|
||
|
return color;
|
||
|
}
|
||
|
RGBA::~RGBA()
|
||
|
{
|
||
|
|
||
|
}
|