mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-25 00:46:53 +00:00
Added generators for ES 2.0 and 3.0
This commit is contained in:
parent
66b01873b0
commit
888cb6637b
28
Source/Bind/ES/ES2Generator.cs
Normal file
28
Source/Bind/ES/ES2Generator.cs
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
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
|
||||||
|
class ES2Generator : ESGenerator
|
||||||
|
{
|
||||||
|
public ES2Generator(Settings settings, string dirName)
|
||||||
|
: base(settings, dirName)
|
||||||
|
{
|
||||||
|
Settings.DefaultOutputNamespace = "OpenTK.Graphics.ES20";
|
||||||
|
Settings.DefaultImportsFile = "ES20Core.cs";
|
||||||
|
Settings.DefaultDelegatesFile = "ES20Delegates.cs";
|
||||||
|
Settings.DefaultEnumsFile = "ES20Enums.cs";
|
||||||
|
Settings.DefaultWrappersFile = "ES20.cs";
|
||||||
|
|
||||||
|
Profile = "gles2";
|
||||||
|
Version = "2.0";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
28
Source/Bind/ES/ES3Generator.cs
Normal file
28
Source/Bind/ES/ES3Generator.cs
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
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 : ESGenerator
|
||||||
|
{
|
||||||
|
public ES3Generator(Settings settings, string dirName)
|
||||||
|
: base(settings, dirName)
|
||||||
|
{
|
||||||
|
Settings.DefaultOutputNamespace = "OpenTK.Graphics.ES30";
|
||||||
|
Settings.DefaultImportsFile = "ES30Core.cs";
|
||||||
|
Settings.DefaultDelegatesFile = "ES30Delegates.cs";
|
||||||
|
Settings.DefaultEnumsFile = "ES30Enums.cs";
|
||||||
|
Settings.DefaultWrappersFile = "ES30.cs";
|
||||||
|
|
||||||
|
Profile = "gles2"; // The 3.0 spec reuses the gles2 apiname
|
||||||
|
Version = "3.0";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -113,6 +113,7 @@
|
||||||
<Reference Include="System.Xml">
|
<Reference Include="System.Xml">
|
||||||
<Name>System.Xml</Name>
|
<Name>System.Xml</Name>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="..\GlobalAssemblyInfo.cs">
|
<Compile Include="..\GlobalAssemblyInfo.cs">
|
||||||
|
@ -228,8 +229,6 @@
|
||||||
</None>
|
</None>
|
||||||
<None Include="Specifications\ES11\overrides.xml">
|
<None Include="Specifications\ES11\overrides.xml">
|
||||||
</None>
|
</None>
|
||||||
<None Include="Specifications\GL2\gloverrides.xml">
|
|
||||||
</None>
|
|
||||||
<None Include="Specifications\ES20\signatures.xml">
|
<None Include="Specifications\ES20\signatures.xml">
|
||||||
</None>
|
</None>
|
||||||
<None Include="Specifications\ES20\overrides.xml">
|
<None Include="Specifications\ES20\overrides.xml">
|
||||||
|
@ -914,6 +913,13 @@
|
||||||
</None>
|
</None>
|
||||||
<None Include="Specifications\License.txt">
|
<None Include="Specifications\License.txt">
|
||||||
</None>
|
</None>
|
||||||
|
<None Include="Specifications\GL2\overrides.xml" />
|
||||||
|
<Compile Include="ES\ES2Generator.cs">
|
||||||
|
<SubType>Code</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ES\ES3Generator.cs">
|
||||||
|
<SubType>Code</SubType>
|
||||||
|
</Compile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="Specifications\Docs\glActiveShaderProgram.xml" />
|
<None Include="Specifications\Docs\glActiveShaderProgram.xml" />
|
||||||
|
|
Loading…
Reference in a new issue