mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-29 12:45:41 +00:00
e8f46c87f6
The generator will now change the default output files to match its bindings (e.g. GL vs ES), but the user is now able to override this option.
32 lines
1,002 B
C#
32 lines
1,002 B
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
|
|
{
|
|
// Generator implementation for OpenGL ES 1.0 and 1.1
|
|
class ESGenerator : Generator
|
|
{
|
|
public ESGenerator(Settings settings, string dirName)
|
|
: base(settings, dirName)
|
|
{
|
|
Settings.DefaultOutputNamespace = "OpenTK.Graphics.ES11";
|
|
Settings.DefaultImportsFile = "ES11Core.cs";
|
|
Settings.DefaultDelegatesFile = "ES11Delegates.cs";
|
|
Settings.DefaultEnumsFile = "ES11Enums.cs";
|
|
Settings.DefaultWrappersFile = "ES11.cs";
|
|
|
|
// Khronos releases a combined 1.0+1.1 specification,
|
|
// so we cannot distinguish between the two.
|
|
// Todo: add support for common and light profiles.
|
|
Profile = "gles1";
|
|
Version = "1.1";
|
|
}
|
|
}
|
|
}
|