Files
RobustToolbox/Robust.Client/Graphics/OpenGLVersion.cs
Acruid 2183cd7ca1 Massive Namespace Cleanup (#1544)
* Removed the Interfaces folder.
* All objects inside the GameObjects subfolders are now in the GameObjects namespace.
* Added a Resharper DotSettings file to mark the GameObjects subfolders as not providing namespaces.
* Simplified Robust.client.Graphics namespace.
* Automated remove redundant using statements.
2021-02-10 23:27:19 -08:00

25 lines
616 B
C#

namespace Robust.Client.Graphics
{
public readonly struct OpenGLVersion
{
public readonly byte Major;
public readonly byte Minor;
public readonly bool IsES;
public readonly bool IsCore;
public OpenGLVersion(byte major, byte minor, bool isES, bool isCore)
{
Major = major;
Minor = minor;
IsES = isES;
IsCore = isCore;
}
public override string ToString()
{
var suffix = IsCore ? " Core" : IsES ? " ES" : "";
return $"{Major}.{Minor}{suffix}";
}
}
}