Added EnumPrefix setting, which may be different from ConstantPrefix or FunctionPrefix. Can be used to remove the Gl, Cl, Al, etc prefixes from enum names.

This commit is contained in:
the_fiddler 2009-08-11 14:03:55 +00:00
parent 0137c05d9a
commit 16e1f279dc

View file

@ -33,6 +33,7 @@ namespace Bind
public static string OutputClass = "GL"; // The real output class. Can be set through -class:"xxx".
public static string FunctionPrefix = "gl";
public static string ConstantPrefix = "GL_";
public static string EnumPrefix = "";
// TODO: This code is too fragile.
// Old enums code:
@ -124,6 +125,8 @@ namespace Bind
NoDropMultipleTokens = 0x200,
/// <summary>Do not emit inline documentation.</summary>
NoDocumentation = 0x400,
/// <summary>Disables ErrorHelper generation.</summary>
NoDebugHelpers = 0x800,
Tao = ConstIntEnums |
NoAdvancedEnumProcessing |
NoPublicUnsafeFunctions |
@ -134,7 +137,8 @@ namespace Bind
NestedEnums |
NoBoolParameters |
NoDropMultipleTokens |
NoDocumentation
NoDocumentation |
NoDebugHelpers
/*GenerateAllPermutations,*/
}