2022-02-23 05:14:32 +00:00
|
|
|
|
namespace MoonWorks.Graphics
|
2021-01-20 03:33:27 +00:00
|
|
|
|
{
|
2022-02-23 05:14:32 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Describes the dimensions of viewports and scissor areas.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public struct ViewportState
|
|
|
|
|
{
|
|
|
|
|
public Viewport[] Viewports;
|
|
|
|
|
public Rect[] Scissors;
|
2022-02-26 02:01:22 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A default single viewport with no scissor area.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ViewportState(int width, int height)
|
|
|
|
|
{
|
|
|
|
|
Viewports = new Viewport[] { new Viewport(width, height) };
|
|
|
|
|
Scissors = new Rect[] { new Rect(width, height) };
|
|
|
|
|
}
|
2022-02-23 05:14:32 +00:00
|
|
|
|
}
|
2021-01-20 03:33:27 +00:00
|
|
|
|
}
|