2013-11-03 00:29:32 +00:00
|
|
|
|
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
|
|
|
|
|
{
|
|
|
|
|
// Generation implementation for OpenGL ES 2.0 and 3.0
|
2014-03-28 19:08:38 +00:00
|
|
|
|
class ES2Generator : Generator
|
2013-11-03 00:29:32 +00:00
|
|
|
|
{
|
|
|
|
|
public ES2Generator(Settings settings, string dirName)
|
|
|
|
|
: base(settings, dirName)
|
|
|
|
|
{
|
2013-11-03 11:13:35 +00:00
|
|
|
|
Settings.DefaultOutputPath = Path.Combine(
|
|
|
|
|
Settings.DefaultOutputPath, "../ES20");
|
2013-11-03 00:29:32 +00:00
|
|
|
|
Settings.DefaultOutputNamespace = "OpenTK.Graphics.ES20";
|
|
|
|
|
Settings.DefaultImportsFile = "ES20Core.cs";
|
|
|
|
|
Settings.DefaultDelegatesFile = "ES20Delegates.cs";
|
|
|
|
|
Settings.DefaultEnumsFile = "ES20Enums.cs";
|
|
|
|
|
Settings.DefaultWrappersFile = "ES20.cs";
|
2014-03-28 19:08:38 +00:00
|
|
|
|
Settings.DefaultDocPath = Path.Combine(
|
|
|
|
|
Settings.DefaultDocPath, "ES20");
|
2013-11-03 00:29:32 +00:00
|
|
|
|
|
2014-08-13 09:22:37 +00:00
|
|
|
|
Settings.OverridesFiles.Add("GL2/overrides.xml");
|
|
|
|
|
|
2013-11-03 00:29:32 +00:00
|
|
|
|
Profile = "gles2";
|
|
|
|
|
Version = "2.0";
|
2014-03-28 19:08:38 +00:00
|
|
|
|
|
|
|
|
|
// For compatibility with OpenTK 1.0 and Xamarin, generate
|
|
|
|
|
// overloads using the "All" enum in addition to strongly-typed enums.
|
|
|
|
|
// This can be disabled by passing "-o:-keep_untyped_enums" as a cmdline parameter.
|
|
|
|
|
Settings.DefaultCompatibility |= Settings.Legacy.KeepUntypedEnums;
|
2014-04-26 12:22:37 +00:00
|
|
|
|
//Settings.DefaultCompatibility |= Settings.Legacy.UseDllImports;
|
2013-11-03 00:29:32 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|