Adding nlohmanns json library
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "Vector.h"
|
||||
#include "Matrix.h"
|
||||
#include "EngineTypes.h"
|
||||
|
||||
namespace Seele
|
||||
{
|
||||
@@ -24,6 +25,28 @@ struct Rect
|
||||
Vector2 size;
|
||||
Vector2 offset;
|
||||
};
|
||||
//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;
|
||||
};
|
||||
struct Rect3D
|
||||
{
|
||||
Vector size;
|
||||
|
||||
Reference in New Issue
Block a user