MiniEngine/SDLEngine/src/sdl_engine_rgba.hpp

25 lines
283 B
C++
Raw Normal View History

2017-01-05 13:25:09 +08:00
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()
{
}