mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-12 08:55:31 +00:00
17b411e2ec
Updated OpenTK.OpenGL.Bind (0.7.7) Split GL enums, core and extensions to different files. Extension support is missing for the time being. Updated the framework implementation and namespace.
50 lines
1.2 KiB
C#
50 lines
1.2 KiB
C#
#region License
|
|
//Copyright (c) 2006 Stephen Apostolopoulos
|
|
//See license.txt for license info
|
|
#endregion
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace OpenTK.OpenGL.Bind
|
|
{
|
|
#region class Enum
|
|
|
|
public class Enum
|
|
{
|
|
string _name;
|
|
|
|
public string Name
|
|
{
|
|
get { return _name; }
|
|
set { _name = value; }
|
|
}
|
|
|
|
System.Collections.Hashtable _constant_collection = new System.Collections.Hashtable();
|
|
|
|
public System.Collections.Hashtable ConstantCollection
|
|
{
|
|
get { return _constant_collection; }
|
|
set { _constant_collection = value; }
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
StringBuilder sb = new StringBuilder();
|
|
|
|
sb.AppendLine(" public enum " + Name + " : uint");
|
|
sb.AppendLine(" {");
|
|
foreach (Constant c in ConstantCollection.Values)
|
|
{
|
|
sb.AppendLine(" " + c.Name + " = " + c.Value + ",");
|
|
}
|
|
sb.AppendLine(" }");
|
|
|
|
return sb.ToString();
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
}
|