implementing renderpass and vieport

This commit is contained in:
Dynamitos
2020-04-12 15:47:19 +02:00
parent 3ba8f2c2a0
commit 576747c369
54 changed files with 6234 additions and 4202 deletions
+25 -25
View File
@@ -3,30 +3,30 @@
namespace Seele
{
struct Rect
struct Rect
{
Rect()
: size(0, 0), offset(0, 0)
{
Rect()
: size(0, 0)
, offset(0, 0)
{}
Rect(float sizeX, float sizeY, float offsetX, float offsetY)
: size(sizeX, sizeY)
, offset(offsetX, offsetY)
{}
Rect(Vector2 size, Vector2 offset)
: size(size)
, offset(offset)
{}
bool isEmpty() const
{
return size.x == 0 || size.y == 0;
}
Vector2 size;
Vector2 offset;
};
struct Rect3D
}
Rect(float sizeX, float sizeY, float offsetX, float offsetY)
: size(sizeX, sizeY), offset(offsetX, offsetY)
{
Vector3 size;
Vector3 offset;
};
}
}
Rect(Vector2 size, Vector2 offset)
: size(size), offset(offset)
{
}
bool isEmpty() const
{
return size.x == 0 || size.y == 0;
}
Vector2 size;
Vector2 offset;
};
struct Rect3D
{
Vector3 size;
Vector3 offset;
};
} // namespace Seele