mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 20:05:39 +00:00
Removed some hacks from enum processing, that are not needed any more.
This commit is contained in:
parent
e7b297ae86
commit
4d30cae4b4
|
@ -63,39 +63,11 @@ namespace Bind.GL2
|
|||
new Regex(@"(Coord1|Attrib(I?)1(u?)|Stream1|Uniform2(u?)|(Point|Convolution|Transform|Sprite|List|Combiner|Tex)Parameter|Fog(Coord)?.*|VertexWeight|(Fragment)?Light(Model)?|Material|ReplacementCodeu?b?|Tex(Gen|Env)|Indexu?.v)",
|
||||
RegexOptions.Compiled);
|
||||
|
||||
|
||||
Bind.Structures.Type.Initialize(glTypemap, csTypemap);
|
||||
Bind.Structures.Enum.Initialize(enumSpec, enumSpecExt);
|
||||
Bind.Structures.Function.Initialize();
|
||||
Bind.Structures.Delegate.Initialize(glSpec, glSpecExt);
|
||||
|
||||
if (!Bind.Structures.Enum.GLEnums.ContainsKey("SGIX_icc_texture"))
|
||||
{
|
||||
// Add missing enum
|
||||
Trace.WriteLine("Spec error: SGIX_icc_texture enum missing, adding by hand.");
|
||||
|
||||
Bind.Structures.Enum e = new Bind.Structures.Enum("SGIX_icc_texture");
|
||||
e.ConstantCollection.Add("RGB_ICC_SGIX", new Constant("RGB_ICC_SGIX", "0x8460"));
|
||||
e.ConstantCollection.Add("RGBA_ICC_SGIX", new Constant("RGBA_ICC_SGIX", "0x8461"));
|
||||
e.ConstantCollection.Add("ALPHA_ICC_SGIX", new Constant("ALPHA_ICC_SGIX", "0x8462"));
|
||||
e.ConstantCollection.Add("LUMINANCE_ICC_SGIX", new Constant("LUMINANCE_ICC_SGIX", "0x8463"));
|
||||
e.ConstantCollection.Add("INTENSITY_ICC_SGIX", new Constant("INTENSITY_ICC_SGIX", "0x8464"));
|
||||
e.ConstantCollection.Add("LUMINANCE_ALPHA_ICC_SGIX", new Constant("LUMINANCE_ALPHA_ICC_SGIX", "0x8465"));
|
||||
e.ConstantCollection.Add("R5_G6_B5_ICC_SGIX", new Constant("R5_G6_B5_ICC_SGIX", "0x8466"));
|
||||
e.ConstantCollection.Add("R5_G6_B5_A8_ICC_SGIX", new Constant("R5_G6_B5_A8_ICC_SGIX", "0x8467"));
|
||||
e.ConstantCollection.Add("ALPHA16_ICC_SGIX", new Constant("ALPHA16_ICC_SGIX", "0x8468"));
|
||||
e.ConstantCollection.Add("LUMINANCE16_ICC_SGIX", new Constant("LUMINANCE16_ICC_SGIX", "0x8469"));
|
||||
e.ConstantCollection.Add("INTENSITY16_ICC_SGIX", new Constant("INTENSITY16_ICC_SGIX", "0x846A"));
|
||||
e.ConstantCollection.Add("LUMINANCE16_ALPHA8_ICC_SGIX", new Constant("LUMINANCE16_ALPHA8_ICC_SGIX", "0x846B"));
|
||||
|
||||
Bind.Structures.Enum.GLEnums.Add(e.Name, e);
|
||||
|
||||
foreach (Constant c in e.ConstantCollection.Values)
|
||||
{
|
||||
Utilities.Merge(Bind.Structures.Enum.GLEnums[Settings.CompleteEnumName], c);
|
||||
}
|
||||
}
|
||||
|
||||
// Process enums and delegates - create wrappers.
|
||||
Trace.WriteLine("Processing specs, please wait...");
|
||||
this.Translate();
|
||||
|
@ -343,17 +315,6 @@ namespace Bind.GL2
|
|||
words[2] = Settings.ConstantPrefix + words[2];
|
||||
|
||||
c.Name = words[2];
|
||||
|
||||
if (words[1] == "LightProperty")
|
||||
{
|
||||
Trace.WriteLine(
|
||||
String.Format(
|
||||
"Spec error: Enum LightProperty.{0} does no exist, changing to LightParameter.{0}",
|
||||
words[2]
|
||||
)
|
||||
);
|
||||
words[1] = "LightParameter";
|
||||
}
|
||||
c.Reference = words[1];
|
||||
c.Value = words[2];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue