Opentk/Source/Bind/ES/ESGenerator.cs
the_fiddler b67f479c6c * Main.cs:
* ES/ESGenerator.cs: Improved handling of default namespace to avoid
  clash with user overrides.
2010-12-05 02:19:47 +00:00

41 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.IO;
using System.Xml.XPath;
using Bind.GL2;
using Bind.Structures;
using Delegate=Bind.Structures.Delegate;
using Enum=Bind.Structures.Enum;
namespace Bind.ES
{
class ESGenerator : Generator
{
public ESGenerator(string nsName, string dirName)
{
if (String.IsNullOrEmpty(nsName))
throw new ArgumentNullException("nsName");
if (dirName == null)
dirName = nsName;
glTypemap = "GL2/gl.tm";
csTypemap = "csharp.tm";
enumSpec = dirName + "/signatures.xml";
enumSpecExt = String.Empty;
glSpec = dirName + "/signatures.xml";
glSpecExt = String.Empty;
Settings.OverridesFile = dirName + "/overrides.xml";
Settings.ImportsFile = "Core.cs";
Settings.DelegatesFile = "Delegates.cs";
Settings.EnumsFile = "Enums.cs";
Settings.WrappersFile = "ES.cs";
Settings.ImportsClass = "Core";
Settings.DelegatesClass = "Delegates";
Settings.OutputClass = "GL";
}
}
}