mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 07:15:38 +00:00
b67f479c6c
* ES/ESGenerator.cs: Improved handling of default namespace to avoid clash with user overrides.
41 lines
1.1 KiB
C#
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";
|
|
}
|
|
}
|
|
}
|