2009-09-03 19:01:11 +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
|
|
|
|
|
{
|
2013-11-03 00:27:10 +00:00
|
|
|
|
// Generator implementation for OpenGL ES 1.0 and 1.1
|
2009-09-03 19:01:11 +00:00
|
|
|
|
class ESGenerator : Generator
|
|
|
|
|
{
|
2013-11-03 00:27:10 +00:00
|
|
|
|
public ESGenerator(Settings settings, string dirName)
|
|
|
|
|
: base(settings, dirName)
|
2009-09-03 19:01:11 +00:00
|
|
|
|
{
|
2013-11-03 11:13:35 +00:00
|
|
|
|
Settings.DefaultOutputPath = Path.Combine(
|
|
|
|
|
Settings.DefaultOutputPath, "../ES11");
|
2013-11-03 00:27:10 +00:00
|
|
|
|
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";
|
2013-11-03 19:32:47 +00:00
|
|
|
|
// Both 1.0 and 1.1 versions
|
2009-09-03 19:01:11 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|