Window resizing works

This commit is contained in:
Dynamitos
2023-11-18 11:04:30 +01:00
parent ec760e8deb
commit 6daaa61641
12 changed files with 92 additions and 50 deletions
+4 -20
View File
@@ -29,28 +29,12 @@ struct Rect
//Unsigned int
struct URect
{
URect()
: size(0, 0), offset(0, 0)
{
}
URect(uint32 sizeX, uint32 sizeY, uint32 offsetX, uint32 offsetY)
: size(sizeX, sizeY), offset(offsetX, offsetY)
{
}
URect(UVector2 size, UVector2 offset)
: size(size), offset(offset)
{
}
bool isEmpty() const
{
return size.x == 0 || size.y == 0;
}
UVector2 size;
UVector2 offset;
UVector2 size = UVector2(0);
UVector2 offset = UVector2(0);
};
struct Rect3D
{
Vector size;
Vector offset;
Vector size = Vector(0);
Vector offset = Vector(0);
};
} // namespace Seele