mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-24 09:41:01 +00:00
67b0ead68b
Instead of using xslt, we now process the documentation in code. This allows us to fix mismatches from e.g. invalid parameter names that sometimes creep in the specs.
39 lines
1.4 KiB
C#
39 lines
1.4 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
|
|
{
|
|
// Generation implementation for OpenGL ES 3.0
|
|
class ES3Generator : Generator
|
|
{
|
|
public ES3Generator(Settings settings, string dirName)
|
|
: base(settings, dirName)
|
|
{
|
|
Settings.DefaultOutputPath = Path.Combine(
|
|
Settings.DefaultOutputPath, "../ES30");
|
|
Settings.DefaultOutputNamespace = "OpenTK.Graphics.ES30";
|
|
Settings.DefaultImportsFile = "ES30Core.cs";
|
|
Settings.DefaultDelegatesFile = "ES30Delegates.cs";
|
|
Settings.DefaultEnumsFile = "ES30Enums.cs";
|
|
Settings.DefaultWrappersFile = "ES30.cs";
|
|
Settings.DefaultDocPath = Path.Combine(
|
|
Settings.DefaultDocPath, "ES30");
|
|
|
|
Profile = "gles2"; // The 3.0 spec reuses the gles2 apiname
|
|
Version = "2.0|3.0";
|
|
|
|
// 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;
|
|
Settings.DefaultCompatibility |= Settings.Legacy.UseDllImports;
|
|
}
|
|
}
|
|
}
|