2007-08-10 09:27:13 +00:00
|
|
|
#region --- License ---
|
|
|
|
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
|
|
|
|
* See license.txt for license info
|
|
|
|
*/
|
2007-07-23 00:15:18 +00:00
|
|
|
#endregion
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Text;
|
|
|
|
|
2007-08-01 09:27:57 +00:00
|
|
|
namespace Bind
|
2007-07-23 00:15:18 +00:00
|
|
|
{
|
|
|
|
static class Settings
|
|
|
|
{
|
2007-08-12 16:14:23 +00:00
|
|
|
public static string InputPath = "..\\..\\..\\Source\\Bind\\Specifications";
|
2007-08-01 09:27:57 +00:00
|
|
|
public static string OutputPath = "..\\..\\..\\Source\\OpenTK\\OpenGL\\Bindings";
|
2007-07-23 00:15:18 +00:00
|
|
|
public static string OutputNamespace = "OpenTK.OpenGL";
|
2007-08-20 10:46:37 +00:00
|
|
|
|
2007-09-02 00:40:43 +00:00
|
|
|
public const string DefaultInputPath = "..\\..\\..\\Source\\Bind\\Specifications";
|
|
|
|
public const string DefaultOutputPath = "..\\..\\..\\Source\\OpenTK\\OpenGL\\Bindings";
|
|
|
|
public const string DefaultOutputNamespace = "OpenTK.OpenGL";
|
2007-08-20 10:46:37 +00:00
|
|
|
|
2007-08-20 12:25:48 +00:00
|
|
|
public static string OutputClass = "GL";
|
|
|
|
public static string FunctionPrefix = "gl";
|
|
|
|
public static string ConstantPrefix = "GL_";
|
|
|
|
|
2007-09-30 12:33:27 +00:00
|
|
|
// TODO: This code is too fragile.
|
2007-09-02 22:52:00 +00:00
|
|
|
public static string NestedEunmsClass = "Enums";
|
2007-09-30 12:33:27 +00:00
|
|
|
private static string normalEnumsClassOverride;
|
|
|
|
public static string NormalEnumsClass
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
if (!String.IsNullOrEmpty(normalEnumsClassOverride))
|
|
|
|
return normalEnumsClassOverride;
|
|
|
|
return OutputClass + "." + NestedEunmsClass;
|
|
|
|
}
|
|
|
|
set { normalEnumsClassOverride = value; }
|
|
|
|
}
|
2007-09-02 22:52:00 +00:00
|
|
|
public static string AuxEnumsClass = "GL." + NestedEunmsClass;
|
2007-08-01 21:14:39 +00:00
|
|
|
|
2007-08-01 09:27:57 +00:00
|
|
|
public static string DelegatesClass = "Delegates";
|
|
|
|
public static string ImportsClass = "Imports";
|
2007-08-20 12:25:48 +00:00
|
|
|
|
2007-08-01 09:27:57 +00:00
|
|
|
public static Legacy Compatibility = Legacy.None;
|
2007-07-23 00:15:18 +00:00
|
|
|
|
2007-08-03 00:14:31 +00:00
|
|
|
/// <summary>
|
|
|
|
/// The name of the C# enum which holds every single OpenGL enum (for compatibility purposes).
|
|
|
|
/// </summary>
|
|
|
|
public static string CompleteEnumName = "All";
|
2007-08-12 16:14:23 +00:00
|
|
|
|
2007-08-01 09:27:57 +00:00
|
|
|
public enum Legacy
|
|
|
|
{
|
|
|
|
None,
|
|
|
|
Tao,
|
|
|
|
}
|
2007-08-12 16:14:23 +00:00
|
|
|
|
2007-08-20 12:25:48 +00:00
|
|
|
public static string WindowsGDI = "OpenTK.Platform.Windows.API";
|
2007-07-23 00:15:18 +00:00
|
|
|
}
|
|
|
|
}
|