- split out FGameTexture into its own files.
This commit is contained in:
parent
5a2a72fc95
commit
cedc95c2a5
9 changed files with 898 additions and 807 deletions
21
src/common/utility/floatrect.h
Normal file
21
src/common/utility/floatrect.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#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;
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue