Files
RobustToolbox/Robust.Client/Graphics/ClydeBase.cs
2021-05-02 14:05:50 +02:00

23 lines
658 B
C#

using Robust.Shared.Maths;
namespace Robust.Client.Graphics
{
public enum WindowMode : byte
{
Windowed = 0,
Fullscreen = 1,
// Maybe add borderless? Not sure how good Godot's default fullscreen is with alt tabbing.
}
// Remember when this was called DisplayManager?
internal static class ClydeBase
{
internal static Vector2i ClampSubRegion(Vector2i size, UIBox2i? subRegionSpecified)
{
return subRegionSpecified == null
? size
: UIBox2i.FromDimensions(Vector2i.Zero, size).Intersection(subRegionSpecified.Value)?.Size ?? default;
}
}
}