* Main.cs:

* ES/ESGenerator.cs: Improved handling of default namespace to avoid
  clash with user overrides.
This commit is contained in:
the_fiddler 2010-12-05 02:19:47 +00:00
parent f9365a4cc4
commit b67f479c6c
2 changed files with 3 additions and 1 deletions

View file

@ -35,7 +35,6 @@ namespace Bind.ES
Settings.DelegatesClass = "Delegates";
Settings.OutputClass = "GL";
Settings.OutputNamespace = "OpenTK.Graphics." + nsName;
}
}
}

View file

@ -223,6 +223,7 @@ namespace Bind
Settings.DefaultOutputPath = Path.Combine(
Directory.GetParent(Settings.DefaultOutputPath).ToString(),
dirName);
Settings.DefaultOutputNamespace = "OpenTK.Graphics.ES10";
}
else if (arg == "es11")
{
@ -230,6 +231,7 @@ namespace Bind
Settings.DefaultOutputPath = Path.Combine(
Directory.GetParent(Settings.DefaultOutputPath).ToString(),
dirName);
Settings.DefaultOutputNamespace = "OpenTK.Graphics.ES11";
}
else if (arg == "es20")
{
@ -237,6 +239,7 @@ namespace Bind
Settings.DefaultOutputPath = Path.Combine(
Directory.GetParent(Settings.DefaultOutputPath).ToString(),
dirName);
Settings.DefaultOutputNamespace = "OpenTK.Graphics.ES20";
}
else if (arg == "cl" || arg == "cl10")
{