From d9918639fbcadc462c7feb0362ca0e4e1deab101 Mon Sep 17 00:00:00 2001 From: Fraser Waters Date: Thu, 5 Oct 2017 12:33:07 +0100 Subject: [PATCH] Generate legacy overloads for GetObjectLabel --- .../Specifications/GL2/overrides.xml | 34 +++++++++---------- src/OpenTK/Graphics/ES20/ES20.cs | 6 ++++ src/OpenTK/Graphics/ES30/ES30.cs | 6 ++++ src/OpenTK/Graphics/ES31/ES31.cs | 6 ++++ src/OpenTK/Graphics/OpenGL/GL.cs | 4 +++ src/OpenTK/Graphics/OpenGL4/GL4.cs | 2 ++ 6 files changed, 40 insertions(+), 18 deletions(-) diff --git a/src/Generator.Bind/Specifications/GL2/overrides.xml b/src/Generator.Bind/Specifications/GL2/overrides.xml index 391a95d1..16be7ea6 100644 --- a/src/Generator.Bind/Specifications/GL2/overrides.xml +++ b/src/Generator.Bind/Specifications/GL2/overrides.xml @@ -1098,6 +1098,7 @@ ObjectLabelIdentifier + @@ -1700,11 +1701,6 @@ - - - 0 - - 0 @@ -1727,6 +1723,13 @@ + + + + + + + @@ -1864,11 +1867,6 @@ BeginMode - - - 0 - - 0 @@ -1999,11 +1997,6 @@ ExtDirectStateAccess - - - 0 - - 0 @@ -5568,17 +5561,22 @@ ObjectLabelIdentifier + ObjectLabelIdentifier - - + + - 0 + + + + + 0 diff --git a/src/OpenTK/Graphics/ES20/ES20.cs b/src/OpenTK/Graphics/ES20/ES20.cs index 42f19f9e..fdfdc0b1 100644 --- a/src/OpenTK/Graphics/ES20/ES20.cs +++ b/src/OpenTK/Graphics/ES20/ES20.cs @@ -9433,6 +9433,7 @@ namespace OpenTK.Graphics.ES20 /// [length: bufSize] /// The address of a string that will receive the object label. /// + [Obsolete("Use out overload instead")] [AutoGenerated(Category = "KHR_debug", Version = "", EntryPoint = "glGetObjectLabel")] [CLSCompliant(false)] public static void GetObjectLabel(OpenTK.Graphics.ES20.ObjectLabelIdentifier identifier, Int32 name, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); } @@ -9499,6 +9500,7 @@ namespace OpenTK.Graphics.ES20 /// [length: bufSize] /// The address of a string that will receive the object label. /// + [Obsolete("Use out overload instead")] [AutoGenerated(Category = "KHR_debug", Version = "", EntryPoint = "glGetObjectLabel")] [CLSCompliant(false)] public static void GetObjectLabel(OpenTK.Graphics.ES20.ObjectLabelIdentifier identifier, UInt32 name, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); } @@ -23851,6 +23853,7 @@ namespace OpenTK.Graphics.ES20 /// [length: bufSize] /// The address of a string that will receive the object label. /// + [Obsolete("Use out overload instead")] [AutoGenerated(Category = "EXT_debug_label", Version = "", EntryPoint = "glGetObjectLabelEXT")] [CLSCompliant(false)] public static void GetObjectLabel(OpenTK.Graphics.ES20.All type, Int32 @object, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); } @@ -23917,6 +23920,7 @@ namespace OpenTK.Graphics.ES20 /// [length: bufSize] /// The address of a string that will receive the object label. /// + [Obsolete("Use out overload instead")] [AutoGenerated(Category = "EXT_debug_label", Version = "", EntryPoint = "glGetObjectLabelEXT")] [CLSCompliant(false)] public static void GetObjectLabel(OpenTK.Graphics.ES20.All type, UInt32 @object, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); } @@ -34773,6 +34777,7 @@ namespace OpenTK.Graphics.ES20 /// [length: bufSize] /// The address of a string that will receive the object label. /// + [Obsolete("Use out overload instead")] [AutoGenerated(Category = "KHR_debug", Version = "", EntryPoint = "glGetObjectLabelKHR")] [CLSCompliant(false)] public static void GetObjectLabel(OpenTK.Graphics.ES20.ObjectLabelIdentifier identifier, Int32 name, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); } @@ -34839,6 +34844,7 @@ namespace OpenTK.Graphics.ES20 /// [length: bufSize] /// The address of a string that will receive the object label. /// + [Obsolete("Use out overload instead")] [AutoGenerated(Category = "KHR_debug", Version = "", EntryPoint = "glGetObjectLabelKHR")] [CLSCompliant(false)] public static void GetObjectLabel(OpenTK.Graphics.ES20.ObjectLabelIdentifier identifier, UInt32 name, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); } diff --git a/src/OpenTK/Graphics/ES30/ES30.cs b/src/OpenTK/Graphics/ES30/ES30.cs index 38bffb7b..35f3d788 100644 --- a/src/OpenTK/Graphics/ES30/ES30.cs +++ b/src/OpenTK/Graphics/ES30/ES30.cs @@ -13646,6 +13646,7 @@ namespace OpenTK.Graphics.ES30 /// [length: bufSize] /// The address of a string that will receive the object label. /// + [Obsolete("Use out overload instead")] [AutoGenerated(Category = "KHR_debug", Version = "", EntryPoint = "glGetObjectLabel")] [CLSCompliant(false)] public static void GetObjectLabel(OpenTK.Graphics.ES30.ObjectLabelIdentifier identifier, Int32 name, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); } @@ -13712,6 +13713,7 @@ namespace OpenTK.Graphics.ES30 /// [length: bufSize] /// The address of a string that will receive the object label. /// + [Obsolete("Use out overload instead")] [AutoGenerated(Category = "KHR_debug", Version = "", EntryPoint = "glGetObjectLabel")] [CLSCompliant(false)] public static void GetObjectLabel(OpenTK.Graphics.ES30.ObjectLabelIdentifier identifier, UInt32 name, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); } @@ -32246,6 +32248,7 @@ namespace OpenTK.Graphics.ES30 /// [length: bufSize] /// The address of a string that will receive the object label. /// + [Obsolete("Use out overload instead")] [AutoGenerated(Category = "EXT_debug_label", Version = "", EntryPoint = "glGetObjectLabelEXT")] [CLSCompliant(false)] public static void GetObjectLabel(OpenTK.Graphics.ES30.All type, Int32 @object, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); } @@ -32312,6 +32315,7 @@ namespace OpenTK.Graphics.ES30 /// [length: bufSize] /// The address of a string that will receive the object label. /// + [Obsolete("Use out overload instead")] [AutoGenerated(Category = "EXT_debug_label", Version = "", EntryPoint = "glGetObjectLabelEXT")] [CLSCompliant(false)] public static void GetObjectLabel(OpenTK.Graphics.ES30.All type, UInt32 @object, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); } @@ -43172,6 +43176,7 @@ namespace OpenTK.Graphics.ES30 /// [length: bufSize] /// The address of a string that will receive the object label. /// + [Obsolete("Use out overload instead")] [AutoGenerated(Category = "KHR_debug", Version = "", EntryPoint = "glGetObjectLabelKHR")] [CLSCompliant(false)] public static void GetObjectLabel(OpenTK.Graphics.ES30.ObjectLabelIdentifier identifier, Int32 name, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); } @@ -43238,6 +43243,7 @@ namespace OpenTK.Graphics.ES30 /// [length: bufSize] /// The address of a string that will receive the object label. /// + [Obsolete("Use out overload instead")] [AutoGenerated(Category = "KHR_debug", Version = "", EntryPoint = "glGetObjectLabelKHR")] [CLSCompliant(false)] public static void GetObjectLabel(OpenTK.Graphics.ES30.ObjectLabelIdentifier identifier, UInt32 name, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); } diff --git a/src/OpenTK/Graphics/ES31/ES31.cs b/src/OpenTK/Graphics/ES31/ES31.cs index 58ecd11d..b8ee751c 100644 --- a/src/OpenTK/Graphics/ES31/ES31.cs +++ b/src/OpenTK/Graphics/ES31/ES31.cs @@ -12711,6 +12711,7 @@ namespace OpenTK.Graphics.ES31 /// [length: bufSize] /// The address of a string that will receive the object label. /// + [Obsolete("Use out overload instead")] [AutoGenerated(Category = "KHR_debug", Version = "", EntryPoint = "glGetObjectLabel")] [CLSCompliant(false)] public static void GetObjectLabel(OpenTK.Graphics.ES31.All identifier, Int32 name, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); } @@ -12777,6 +12778,7 @@ namespace OpenTK.Graphics.ES31 /// [length: bufSize] /// The address of a string that will receive the object label. /// + [Obsolete("Use out overload instead")] [AutoGenerated(Category = "KHR_debug", Version = "", EntryPoint = "glGetObjectLabel")] [CLSCompliant(false)] public static void GetObjectLabel(OpenTK.Graphics.ES31.All identifier, UInt32 name, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); } @@ -31482,6 +31484,7 @@ namespace OpenTK.Graphics.ES31 /// [length: bufSize] /// The address of a string that will receive the object label. /// + [Obsolete("Use out overload instead")] [AutoGenerated(Category = "EXT_debug_label", Version = "", EntryPoint = "glGetObjectLabelEXT")] [CLSCompliant(false)] public static void GetObjectLabel(OpenTK.Graphics.ES31.All type, Int32 @object, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); } @@ -31548,6 +31551,7 @@ namespace OpenTK.Graphics.ES31 /// [length: bufSize] /// The address of a string that will receive the object label. /// + [Obsolete("Use out overload instead")] [AutoGenerated(Category = "EXT_debug_label", Version = "", EntryPoint = "glGetObjectLabelEXT")] [CLSCompliant(false)] public static void GetObjectLabel(OpenTK.Graphics.ES31.All type, UInt32 @object, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); } @@ -41256,6 +41260,7 @@ namespace OpenTK.Graphics.ES31 /// [length: bufSize] /// The address of a string that will receive the object label. /// + [Obsolete("Use out overload instead")] [AutoGenerated(Category = "KHR_debug", Version = "", EntryPoint = "glGetObjectLabelKHR")] [CLSCompliant(false)] public static void GetObjectLabel(OpenTK.Graphics.ES31.All identifier, Int32 name, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); } @@ -41322,6 +41327,7 @@ namespace OpenTK.Graphics.ES31 /// [length: bufSize] /// The address of a string that will receive the object label. /// + [Obsolete("Use out overload instead")] [AutoGenerated(Category = "KHR_debug", Version = "", EntryPoint = "glGetObjectLabelKHR")] [CLSCompliant(false)] public static void GetObjectLabel(OpenTK.Graphics.ES31.All identifier, UInt32 name, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); } diff --git a/src/OpenTK/Graphics/OpenGL/GL.cs b/src/OpenTK/Graphics/OpenGL/GL.cs index 493be532..7a8ae9ca 100644 --- a/src/OpenTK/Graphics/OpenGL/GL.cs +++ b/src/OpenTK/Graphics/OpenGL/GL.cs @@ -46322,6 +46322,7 @@ namespace OpenTK.Graphics.OpenGL /// [length: bufSize] /// The address of a string that will receive the object label. /// + [Obsolete("Use out overload instead")] [AutoGenerated(Category = "KHR_debug|VERSION_4_3", Version = "4.3", EntryPoint = "glGetObjectLabel")] [CLSCompliant(false)] public static void GetObjectLabel(OpenTK.Graphics.OpenGL.ObjectLabelIdentifier identifier, Int32 name, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); } @@ -46388,6 +46389,7 @@ namespace OpenTK.Graphics.OpenGL /// [length: bufSize] /// The address of a string that will receive the object label. /// + [Obsolete("Use out overload instead")] [AutoGenerated(Category = "KHR_debug|VERSION_4_3", Version = "4.3", EntryPoint = "glGetObjectLabel")] [CLSCompliant(false)] public static void GetObjectLabel(OpenTK.Graphics.OpenGL.ObjectLabelIdentifier identifier, UInt32 name, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); } @@ -90069,6 +90071,7 @@ namespace OpenTK.Graphics.OpenGL /// [length: bufSize] /// The address of a string that will receive the object label. /// + [Obsolete("Use out overload instead")] [AutoGenerated(Category = "EXT_debug_label", Version = "", EntryPoint = "glGetObjectLabelEXT")] [CLSCompliant(false)] public static void GetObjectLabel(OpenTK.Graphics.OpenGL.ExtDebugLabel type, Int32 @object, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); } @@ -90135,6 +90138,7 @@ namespace OpenTK.Graphics.OpenGL /// [length: bufSize] /// The address of a string that will receive the object label. /// + [Obsolete("Use out overload instead")] [AutoGenerated(Category = "EXT_debug_label", Version = "", EntryPoint = "glGetObjectLabelEXT")] [CLSCompliant(false)] public static void GetObjectLabel(OpenTK.Graphics.OpenGL.ExtDebugLabel type, UInt32 @object, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); } diff --git a/src/OpenTK/Graphics/OpenGL4/GL4.cs b/src/OpenTK/Graphics/OpenGL4/GL4.cs index 1dfba67d..34a6f66f 100644 --- a/src/OpenTK/Graphics/OpenGL4/GL4.cs +++ b/src/OpenTK/Graphics/OpenGL4/GL4.cs @@ -25037,6 +25037,7 @@ namespace OpenTK.Graphics.OpenGL4 /// [length: bufSize] /// The address of a string that will receive the object label. /// + [Obsolete("Use out overload instead")] [AutoGenerated(Category = "KHR_debug|VERSION_4_3", Version = "4.3", EntryPoint = "glGetObjectLabel")] [CLSCompliant(false)] public static void GetObjectLabel(OpenTK.Graphics.OpenGL4.ObjectLabelIdentifier identifier, Int32 name, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); } @@ -25103,6 +25104,7 @@ namespace OpenTK.Graphics.OpenGL4 /// [length: bufSize] /// The address of a string that will receive the object label. /// + [Obsolete("Use out overload instead")] [AutoGenerated(Category = "KHR_debug|VERSION_4_3", Version = "4.3", EntryPoint = "glGetObjectLabel")] [CLSCompliant(false)] public static void GetObjectLabel(OpenTK.Graphics.OpenGL4.ObjectLabelIdentifier identifier, UInt32 name, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); }