mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
* 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.
25 lines
616 B
C#
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}";
|
|
}
|
|
}
|
|
}
|