diff --git a/Source/Bind/Main.cs b/Source/Bind/Main.cs index 1a9f4164..90a714b7 100644 --- a/Source/Bind/Main.cs +++ b/Source/Bind/Main.cs @@ -97,6 +97,7 @@ namespace Bind Settings.Compatibility |= b[1].ToLower().Contains("enums") ? Settings.Legacy.NoAdvancedEnumProcessing : Settings.Legacy.None; Settings.Compatibility |= b[1].ToLower().Contains("safe") ? Settings.Legacy.NoPublicUnsafeFunctions : Settings.Legacy.None; //Settings.Compatibility |= b[1].ToLower().Contains("novoid") ? Settings.Legacy.TurnVoidPointersToIntPtr : Settings.Legacy.None; + Settings.Compatibility |= b[1].ToLower().Contains("permutations") ? Settings.Legacy.GenerateAllPermutations : Settings.Legacy.None; break; case "enum": Settings.NestedEnumsClass = b[1]; diff --git a/Source/Bind/Settings.cs b/Source/Bind/Settings.cs index 08515f9e..e7064c1e 100644 --- a/Source/Bind/Settings.cs +++ b/Source/Bind/Settings.cs @@ -39,7 +39,7 @@ namespace Bind public static string AuxEnumsClass { - get { return GLClass + NestedEnumsClass; } + get { return GLClass + "." + NestedEnumsClass; } } public static string DelegatesClass = "Delegates"; @@ -63,7 +63,8 @@ namespace Bind NoTrimFunctionPrefix = 0x08, NoSeparateFunctionNamespaces = 0x10, TurnVoidPointersToIntPtr = 0x20, - Tao = ConstIntEnums | NoAdvancedEnumProcessing | NoPublicUnsafeFunctions | NoTrimFunctionEnding | NoTrimFunctionPrefix | NoSeparateFunctionNamespaces | TurnVoidPointersToIntPtr, + GenerateAllPermutations = 0x40, + Tao = ConstIntEnums | NoAdvancedEnumProcessing | NoPublicUnsafeFunctions | NoTrimFunctionEnding | NoTrimFunctionPrefix | NoSeparateFunctionNamespaces | TurnVoidPointersToIntPtr | GenerateAllPermutations, } public static string WindowsGDI = "OpenTK.Platform.Windows.API";