mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-17 09:51:38 +00:00
22 lines
244 B
C
22 lines
244 B
C
|
#pragma once
|
||
|
|
||
|
struct FloatRect
|
||
|
{
|
||
|
float left,top;
|
||
|
float width,height;
|
||
|
|
||
|
|
||
|
void Offset(float xofs,float yofs)
|
||
|
{
|
||
|
left+=xofs;
|
||
|
top+=yofs;
|
||
|
}
|
||
|
void Scale(float xfac,float yfac)
|
||
|
{
|
||
|
left*=xfac;
|
||
|
width*=xfac;
|
||
|
top*=yfac;
|
||
|
height*=yfac;
|
||
|
}
|
||
|
};
|