mirror of
https://github.com/Kiritow/MiniEngine.git
synced 2024-03-22 13:11:22 +08:00
25 lines
274 B
C++
25 lines
274 B
C++
|
SDL_Rect Rect::toSDLRect()
|
||
|
{
|
||
|
SDL_Rect rect;
|
||
|
rect.x=x;
|
||
|
rect.y=y;
|
||
|
rect.w=w;
|
||
|
rect.h=h;
|
||
|
return rect;
|
||
|
}
|
||
|
Rect::Rect()
|
||
|
{
|
||
|
x=y=w=h=0;
|
||
|
}
|
||
|
Rect::Rect(int incx,int incy,int incw,int inch)
|
||
|
{
|
||
|
x=incx;
|
||
|
y=incy;
|
||
|
w=incw;
|
||
|
h=inch;
|
||
|
}
|
||
|
Rect::~Rect()
|
||
|
{
|
||
|
|
||
|
}
|