From eb84a29206c28b985aa1defde76d96642d8ec6a4 Mon Sep 17 00:00:00 2001 From: "Stefanos A." Date: Wed, 23 Oct 2013 20:12:05 +0200 Subject: [PATCH] Implemented "Debug Output" and "State and State Requests" functionality according to the OpenGL 4.4 specification, sections 20 and 22. --- .../Bind/Specifications/GL2/gloverrides.xml | 228 ++++++- Source/OpenTK/Graphics/OpenGL/GL.cs | 104 +-- Source/OpenTK/Graphics/OpenGL/GLCore.cs | 16 +- Source/OpenTK/Graphics/OpenGL/GLDelegates.cs | 16 +- Source/OpenTK/Graphics/OpenGL/GLEnums.cs | 592 +++++++++++++++++- 5 files changed, 879 insertions(+), 77 deletions(-) diff --git a/Source/Bind/Specifications/GL2/gloverrides.xml b/Source/Bind/Specifications/GL2/gloverrides.xml index 7264e380..87b9ca49 100644 --- a/Source/Bind/Specifications/GL2/gloverrides.xml +++ b/Source/Bind/Specifications/GL2/gloverrides.xml @@ -14,6 +14,12 @@ ArrayCap + + + + StringName + + @@ -438,9 +444,9 @@ - + - StringName + StringNameIndexed @@ -993,6 +999,30 @@ + + + DebugSourceControl + + + DebugTypeControl + + + DebugSeverityControl + + + + + + DebugSourceExternal + + + DebugType + + + DebugSeverity + + + FramebufferTarget @@ -1010,6 +1040,36 @@ FramebufferDefaultParameter + + + + ImageTarget + + + All + + + InternalFormatParameter + + + + + + DebugSource + + + DebugType + + + DebugSeverity + + + + + + ObjectLabelIdentifier + + @@ -1077,6 +1137,18 @@ + + + ObjectLabelIdentifier + + + + + + DebugSourceExternal + + + TextureBufferTarget @@ -2020,6 +2092,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2108,6 +2237,8 @@ + + @@ -2618,6 +2749,79 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2692,6 +2896,19 @@ + + + + + + + + + + + + + @@ -3263,8 +3480,11 @@ - - + + + + + diff --git a/Source/OpenTK/Graphics/OpenGL/GL.cs b/Source/OpenTK/Graphics/OpenGL/GL.cs index 3409e2c4..54b8abc1 100644 --- a/Source/OpenTK/Graphics/OpenGL/GL.cs +++ b/Source/OpenTK/Graphics/OpenGL/GL.cs @@ -42622,7 +42622,7 @@ namespace OpenTK.Graphics.OpenGL /// [requires: v4.3 and KHR_debug] [AutoGenerated(Category = "KHR_debug", Version = "4.3", EntryPoint = "glDebugMessageControl")] public static - void DebugMessageControl(OpenTK.Graphics.OpenGL.KhrDebug source, OpenTK.Graphics.OpenGL.KhrDebug type, OpenTK.Graphics.OpenGL.KhrDebug severity, Int32 count, Int32[] ids, bool enabled) + void DebugMessageControl(OpenTK.Graphics.OpenGL.DebugSourceControl source, OpenTK.Graphics.OpenGL.DebugTypeControl type, OpenTK.Graphics.OpenGL.DebugSeverityControl severity, Int32 count, Int32[] ids, bool enabled) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -42632,7 +42632,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* ids_ptr = ids) { - Delegates.glDebugMessageControl((OpenTK.Graphics.OpenGL.KhrDebug)source, (OpenTK.Graphics.OpenGL.KhrDebug)type, (OpenTK.Graphics.OpenGL.KhrDebug)severity, (Int32)count, (UInt32*)ids_ptr, (bool)enabled); + Delegates.glDebugMessageControl((OpenTK.Graphics.OpenGL.DebugSourceControl)source, (OpenTK.Graphics.OpenGL.DebugTypeControl)type, (OpenTK.Graphics.OpenGL.DebugSeverityControl)severity, (Int32)count, (UInt32*)ids_ptr, (bool)enabled); } } #if DEBUG @@ -42643,7 +42643,7 @@ namespace OpenTK.Graphics.OpenGL /// [requires: v4.3 and KHR_debug] [AutoGenerated(Category = "KHR_debug", Version = "4.3", EntryPoint = "glDebugMessageControl")] public static - void DebugMessageControl(OpenTK.Graphics.OpenGL.KhrDebug source, OpenTK.Graphics.OpenGL.KhrDebug type, OpenTK.Graphics.OpenGL.KhrDebug severity, Int32 count, ref Int32 ids, bool enabled) + void DebugMessageControl(OpenTK.Graphics.OpenGL.DebugSourceControl source, OpenTK.Graphics.OpenGL.DebugTypeControl type, OpenTK.Graphics.OpenGL.DebugSeverityControl severity, Int32 count, ref Int32 ids, bool enabled) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -42653,7 +42653,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* ids_ptr = &ids) { - Delegates.glDebugMessageControl((OpenTK.Graphics.OpenGL.KhrDebug)source, (OpenTK.Graphics.OpenGL.KhrDebug)type, (OpenTK.Graphics.OpenGL.KhrDebug)severity, (Int32)count, (UInt32*)ids_ptr, (bool)enabled); + Delegates.glDebugMessageControl((OpenTK.Graphics.OpenGL.DebugSourceControl)source, (OpenTK.Graphics.OpenGL.DebugTypeControl)type, (OpenTK.Graphics.OpenGL.DebugSeverityControl)severity, (Int32)count, (UInt32*)ids_ptr, (bool)enabled); } } #if DEBUG @@ -42665,13 +42665,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "KHR_debug", Version = "4.3", EntryPoint = "glDebugMessageControl")] public static - unsafe void DebugMessageControl(OpenTK.Graphics.OpenGL.KhrDebug source, OpenTK.Graphics.OpenGL.KhrDebug type, OpenTK.Graphics.OpenGL.KhrDebug severity, Int32 count, Int32* ids, bool enabled) + unsafe void DebugMessageControl(OpenTK.Graphics.OpenGL.DebugSourceControl source, OpenTK.Graphics.OpenGL.DebugTypeControl type, OpenTK.Graphics.OpenGL.DebugSeverityControl severity, Int32 count, Int32* ids, bool enabled) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glDebugMessageControl((OpenTK.Graphics.OpenGL.KhrDebug)source, (OpenTK.Graphics.OpenGL.KhrDebug)type, (OpenTK.Graphics.OpenGL.KhrDebug)severity, (Int32)count, (UInt32*)ids, (bool)enabled); + Delegates.glDebugMessageControl((OpenTK.Graphics.OpenGL.DebugSourceControl)source, (OpenTK.Graphics.OpenGL.DebugTypeControl)type, (OpenTK.Graphics.OpenGL.DebugSeverityControl)severity, (Int32)count, (UInt32*)ids, (bool)enabled); #if DEBUG } #endif @@ -42681,7 +42681,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "KHR_debug", Version = "4.3", EntryPoint = "glDebugMessageControl")] public static - void DebugMessageControl(OpenTK.Graphics.OpenGL.KhrDebug source, OpenTK.Graphics.OpenGL.KhrDebug type, OpenTK.Graphics.OpenGL.KhrDebug severity, Int32 count, UInt32[] ids, bool enabled) + void DebugMessageControl(OpenTK.Graphics.OpenGL.DebugSourceControl source, OpenTK.Graphics.OpenGL.DebugTypeControl type, OpenTK.Graphics.OpenGL.DebugSeverityControl severity, Int32 count, UInt32[] ids, bool enabled) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -42691,7 +42691,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (UInt32* ids_ptr = ids) { - Delegates.glDebugMessageControl((OpenTK.Graphics.OpenGL.KhrDebug)source, (OpenTK.Graphics.OpenGL.KhrDebug)type, (OpenTK.Graphics.OpenGL.KhrDebug)severity, (Int32)count, (UInt32*)ids_ptr, (bool)enabled); + Delegates.glDebugMessageControl((OpenTK.Graphics.OpenGL.DebugSourceControl)source, (OpenTK.Graphics.OpenGL.DebugTypeControl)type, (OpenTK.Graphics.OpenGL.DebugSeverityControl)severity, (Int32)count, (UInt32*)ids_ptr, (bool)enabled); } } #if DEBUG @@ -42703,7 +42703,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "KHR_debug", Version = "4.3", EntryPoint = "glDebugMessageControl")] public static - void DebugMessageControl(OpenTK.Graphics.OpenGL.KhrDebug source, OpenTK.Graphics.OpenGL.KhrDebug type, OpenTK.Graphics.OpenGL.KhrDebug severity, Int32 count, ref UInt32 ids, bool enabled) + void DebugMessageControl(OpenTK.Graphics.OpenGL.DebugSourceControl source, OpenTK.Graphics.OpenGL.DebugTypeControl type, OpenTK.Graphics.OpenGL.DebugSeverityControl severity, Int32 count, ref UInt32 ids, bool enabled) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -42713,7 +42713,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (UInt32* ids_ptr = &ids) { - Delegates.glDebugMessageControl((OpenTK.Graphics.OpenGL.KhrDebug)source, (OpenTK.Graphics.OpenGL.KhrDebug)type, (OpenTK.Graphics.OpenGL.KhrDebug)severity, (Int32)count, (UInt32*)ids_ptr, (bool)enabled); + Delegates.glDebugMessageControl((OpenTK.Graphics.OpenGL.DebugSourceControl)source, (OpenTK.Graphics.OpenGL.DebugTypeControl)type, (OpenTK.Graphics.OpenGL.DebugSeverityControl)severity, (Int32)count, (UInt32*)ids_ptr, (bool)enabled); } } #if DEBUG @@ -42725,13 +42725,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "KHR_debug", Version = "4.3", EntryPoint = "glDebugMessageControl")] public static - unsafe void DebugMessageControl(OpenTK.Graphics.OpenGL.KhrDebug source, OpenTK.Graphics.OpenGL.KhrDebug type, OpenTK.Graphics.OpenGL.KhrDebug severity, Int32 count, UInt32* ids, bool enabled) + unsafe void DebugMessageControl(OpenTK.Graphics.OpenGL.DebugSourceControl source, OpenTK.Graphics.OpenGL.DebugTypeControl type, OpenTK.Graphics.OpenGL.DebugSeverityControl severity, Int32 count, UInt32* ids, bool enabled) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glDebugMessageControl((OpenTK.Graphics.OpenGL.KhrDebug)source, (OpenTK.Graphics.OpenGL.KhrDebug)type, (OpenTK.Graphics.OpenGL.KhrDebug)severity, (Int32)count, (UInt32*)ids, (bool)enabled); + Delegates.glDebugMessageControl((OpenTK.Graphics.OpenGL.DebugSourceControl)source, (OpenTK.Graphics.OpenGL.DebugTypeControl)type, (OpenTK.Graphics.OpenGL.DebugSeverityControl)severity, (Int32)count, (UInt32*)ids, (bool)enabled); #if DEBUG } #endif @@ -42740,13 +42740,13 @@ namespace OpenTK.Graphics.OpenGL /// [requires: v4.3 and KHR_debug] [AutoGenerated(Category = "KHR_debug", Version = "4.3", EntryPoint = "glDebugMessageInsert")] public static - void DebugMessageInsert(OpenTK.Graphics.OpenGL.KhrDebug source, OpenTK.Graphics.OpenGL.KhrDebug type, Int32 id, OpenTK.Graphics.OpenGL.KhrDebug severity, Int32 length, String buf) + void DebugMessageInsert(OpenTK.Graphics.OpenGL.DebugSourceExternal source, OpenTK.Graphics.OpenGL.DebugType type, Int32 id, OpenTK.Graphics.OpenGL.DebugSeverity severity, Int32 length, String buf) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glDebugMessageInsert((OpenTK.Graphics.OpenGL.KhrDebug)source, (OpenTK.Graphics.OpenGL.KhrDebug)type, (UInt32)id, (OpenTK.Graphics.OpenGL.KhrDebug)severity, (Int32)length, (String)buf); + Delegates.glDebugMessageInsert((OpenTK.Graphics.OpenGL.DebugSourceExternal)source, (OpenTK.Graphics.OpenGL.DebugType)type, (UInt32)id, (OpenTK.Graphics.OpenGL.DebugSeverity)severity, (Int32)length, (String)buf); #if DEBUG } #endif @@ -42756,13 +42756,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "KHR_debug", Version = "4.3", EntryPoint = "glDebugMessageInsert")] public static - void DebugMessageInsert(OpenTK.Graphics.OpenGL.KhrDebug source, OpenTK.Graphics.OpenGL.KhrDebug type, UInt32 id, OpenTK.Graphics.OpenGL.KhrDebug severity, Int32 length, String buf) + void DebugMessageInsert(OpenTK.Graphics.OpenGL.DebugSourceExternal source, OpenTK.Graphics.OpenGL.DebugType type, UInt32 id, OpenTK.Graphics.OpenGL.DebugSeverity severity, Int32 length, String buf) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glDebugMessageInsert((OpenTK.Graphics.OpenGL.KhrDebug)source, (OpenTK.Graphics.OpenGL.KhrDebug)type, (UInt32)id, (OpenTK.Graphics.OpenGL.KhrDebug)severity, (Int32)length, (String)buf); + Delegates.glDebugMessageInsert((OpenTK.Graphics.OpenGL.DebugSourceExternal)source, (OpenTK.Graphics.OpenGL.DebugType)type, (UInt32)id, (OpenTK.Graphics.OpenGL.DebugSeverity)severity, (Int32)length, (String)buf); #if DEBUG } #endif @@ -58948,7 +58948,7 @@ namespace OpenTK.Graphics.OpenGL /// [requires: v4.3 and ARB_internalformat_query2] [AutoGenerated(Category = "ARB_internalformat_query2", Version = "4.3", EntryPoint = "glGetInternalformati64v")] public static - void GetInternalformat(OpenTK.Graphics.OpenGL.ArbInternalformatQuery2 target, OpenTK.Graphics.OpenGL.ArbInternalformatQuery2 internalformat, OpenTK.Graphics.OpenGL.ArbInternalformatQuery2 pname, Int32 bufSize, [OutAttribute] Int64[] @params) + void GetInternalformat(OpenTK.Graphics.OpenGL.ImageTarget target, OpenTK.Graphics.OpenGL.All internalformat, OpenTK.Graphics.OpenGL.InternalFormatParameter pname, Int32 bufSize, [OutAttribute] Int64[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -58958,7 +58958,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int64* @params_ptr = @params) { - Delegates.glGetInternalformati64v((OpenTK.Graphics.OpenGL.ArbInternalformatQuery2)target, (OpenTK.Graphics.OpenGL.ArbInternalformatQuery2)internalformat, (OpenTK.Graphics.OpenGL.ArbInternalformatQuery2)pname, (Int32)bufSize, (Int64*)@params_ptr); + Delegates.glGetInternalformati64v((OpenTK.Graphics.OpenGL.ImageTarget)target, (OpenTK.Graphics.OpenGL.All)internalformat, (OpenTK.Graphics.OpenGL.InternalFormatParameter)pname, (Int32)bufSize, (Int64*)@params_ptr); } } #if DEBUG @@ -58969,7 +58969,7 @@ namespace OpenTK.Graphics.OpenGL /// [requires: v4.3 and ARB_internalformat_query2] [AutoGenerated(Category = "ARB_internalformat_query2", Version = "4.3", EntryPoint = "glGetInternalformati64v")] public static - void GetInternalformat(OpenTK.Graphics.OpenGL.ArbInternalformatQuery2 target, OpenTK.Graphics.OpenGL.ArbInternalformatQuery2 internalformat, OpenTK.Graphics.OpenGL.ArbInternalformatQuery2 pname, Int32 bufSize, [OutAttribute] out Int64 @params) + void GetInternalformat(OpenTK.Graphics.OpenGL.ImageTarget target, OpenTK.Graphics.OpenGL.All internalformat, OpenTK.Graphics.OpenGL.InternalFormatParameter pname, Int32 bufSize, [OutAttribute] out Int64 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -58979,7 +58979,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int64* @params_ptr = &@params) { - Delegates.glGetInternalformati64v((OpenTK.Graphics.OpenGL.ArbInternalformatQuery2)target, (OpenTK.Graphics.OpenGL.ArbInternalformatQuery2)internalformat, (OpenTK.Graphics.OpenGL.ArbInternalformatQuery2)pname, (Int32)bufSize, (Int64*)@params_ptr); + Delegates.glGetInternalformati64v((OpenTK.Graphics.OpenGL.ImageTarget)target, (OpenTK.Graphics.OpenGL.All)internalformat, (OpenTK.Graphics.OpenGL.InternalFormatParameter)pname, (Int32)bufSize, (Int64*)@params_ptr); @params = *@params_ptr; } } @@ -58992,13 +58992,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ARB_internalformat_query2", Version = "4.3", EntryPoint = "glGetInternalformati64v")] public static - unsafe void GetInternalformat(OpenTK.Graphics.OpenGL.ArbInternalformatQuery2 target, OpenTK.Graphics.OpenGL.ArbInternalformatQuery2 internalformat, OpenTK.Graphics.OpenGL.ArbInternalformatQuery2 pname, Int32 bufSize, [OutAttribute] Int64* @params) + unsafe void GetInternalformat(OpenTK.Graphics.OpenGL.ImageTarget target, OpenTK.Graphics.OpenGL.All internalformat, OpenTK.Graphics.OpenGL.InternalFormatParameter pname, Int32 bufSize, [OutAttribute] Int64* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetInternalformati64v((OpenTK.Graphics.OpenGL.ArbInternalformatQuery2)target, (OpenTK.Graphics.OpenGL.ArbInternalformatQuery2)internalformat, (OpenTK.Graphics.OpenGL.ArbInternalformatQuery2)pname, (Int32)bufSize, (Int64*)@params); + Delegates.glGetInternalformati64v((OpenTK.Graphics.OpenGL.ImageTarget)target, (OpenTK.Graphics.OpenGL.All)internalformat, (OpenTK.Graphics.OpenGL.InternalFormatParameter)pname, (Int32)bufSize, (Int64*)@params); #if DEBUG } #endif @@ -59007,7 +59007,7 @@ namespace OpenTK.Graphics.OpenGL /// [requires: v4.2 and ARB_internalformat_query] [AutoGenerated(Category = "ARB_internalformat_query", Version = "4.2", EntryPoint = "glGetInternalformativ")] public static - void GetInternalformat(OpenTK.Graphics.OpenGL.ArbInternalformatQuery target, OpenTK.Graphics.OpenGL.ArbInternalformatQuery internalformat, OpenTK.Graphics.OpenGL.ArbInternalformatQuery pname, Int32 bufSize, [OutAttribute] Int32[] @params) + void GetInternalformat(OpenTK.Graphics.OpenGL.ImageTarget target, OpenTK.Graphics.OpenGL.All internalformat, OpenTK.Graphics.OpenGL.InternalFormatParameter pname, Int32 bufSize, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -59017,7 +59017,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* @params_ptr = @params) { - Delegates.glGetInternalformativ((OpenTK.Graphics.OpenGL.ArbInternalformatQuery)target, (OpenTK.Graphics.OpenGL.ArbInternalformatQuery)internalformat, (OpenTK.Graphics.OpenGL.ArbInternalformatQuery)pname, (Int32)bufSize, (Int32*)@params_ptr); + Delegates.glGetInternalformativ((OpenTK.Graphics.OpenGL.ImageTarget)target, (OpenTK.Graphics.OpenGL.All)internalformat, (OpenTK.Graphics.OpenGL.InternalFormatParameter)pname, (Int32)bufSize, (Int32*)@params_ptr); } } #if DEBUG @@ -59028,7 +59028,7 @@ namespace OpenTK.Graphics.OpenGL /// [requires: v4.2 and ARB_internalformat_query] [AutoGenerated(Category = "ARB_internalformat_query", Version = "4.2", EntryPoint = "glGetInternalformativ")] public static - void GetInternalformat(OpenTK.Graphics.OpenGL.ArbInternalformatQuery target, OpenTK.Graphics.OpenGL.ArbInternalformatQuery internalformat, OpenTK.Graphics.OpenGL.ArbInternalformatQuery pname, Int32 bufSize, [OutAttribute] out Int32 @params) + void GetInternalformat(OpenTK.Graphics.OpenGL.ImageTarget target, OpenTK.Graphics.OpenGL.All internalformat, OpenTK.Graphics.OpenGL.InternalFormatParameter pname, Int32 bufSize, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -59038,7 +59038,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetInternalformativ((OpenTK.Graphics.OpenGL.ArbInternalformatQuery)target, (OpenTK.Graphics.OpenGL.ArbInternalformatQuery)internalformat, (OpenTK.Graphics.OpenGL.ArbInternalformatQuery)pname, (Int32)bufSize, (Int32*)@params_ptr); + Delegates.glGetInternalformativ((OpenTK.Graphics.OpenGL.ImageTarget)target, (OpenTK.Graphics.OpenGL.All)internalformat, (OpenTK.Graphics.OpenGL.InternalFormatParameter)pname, (Int32)bufSize, (Int32*)@params_ptr); @params = *@params_ptr; } } @@ -59051,13 +59051,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ARB_internalformat_query", Version = "4.2", EntryPoint = "glGetInternalformativ")] public static - unsafe void GetInternalformat(OpenTK.Graphics.OpenGL.ArbInternalformatQuery target, OpenTK.Graphics.OpenGL.ArbInternalformatQuery internalformat, OpenTK.Graphics.OpenGL.ArbInternalformatQuery pname, Int32 bufSize, [OutAttribute] Int32* @params) + unsafe void GetInternalformat(OpenTK.Graphics.OpenGL.ImageTarget target, OpenTK.Graphics.OpenGL.All internalformat, OpenTK.Graphics.OpenGL.InternalFormatParameter pname, Int32 bufSize, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetInternalformativ((OpenTK.Graphics.OpenGL.ArbInternalformatQuery)target, (OpenTK.Graphics.OpenGL.ArbInternalformatQuery)internalformat, (OpenTK.Graphics.OpenGL.ArbInternalformatQuery)pname, (Int32)bufSize, (Int32*)@params); + Delegates.glGetInternalformativ((OpenTK.Graphics.OpenGL.ImageTarget)target, (OpenTK.Graphics.OpenGL.All)internalformat, (OpenTK.Graphics.OpenGL.InternalFormatParameter)pname, (Int32)bufSize, (Int32*)@params); #if DEBUG } #endif @@ -60563,7 +60563,7 @@ namespace OpenTK.Graphics.OpenGL /// [requires: v4.3 and KHR_debug] [AutoGenerated(Category = "KHR_debug", Version = "4.3", EntryPoint = "glGetObjectLabel")] public static - void GetObjectLabel(OpenTK.Graphics.OpenGL.KhrDebug identifier, Int32 name, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder label) + void GetObjectLabel(OpenTK.Graphics.OpenGL.ObjectLabelIdentifier identifier, Int32 name, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder label) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -60573,7 +60573,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = length) { - Delegates.glGetObjectLabel((OpenTK.Graphics.OpenGL.KhrDebug)identifier, (UInt32)name, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)label); + Delegates.glGetObjectLabel((OpenTK.Graphics.OpenGL.ObjectLabelIdentifier)identifier, (UInt32)name, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)label); } } #if DEBUG @@ -60584,7 +60584,7 @@ namespace OpenTK.Graphics.OpenGL /// [requires: v4.3 and KHR_debug] [AutoGenerated(Category = "KHR_debug", Version = "4.3", EntryPoint = "glGetObjectLabel")] public static - void GetObjectLabel(OpenTK.Graphics.OpenGL.KhrDebug identifier, Int32 name, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder label) + void GetObjectLabel(OpenTK.Graphics.OpenGL.ObjectLabelIdentifier identifier, Int32 name, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder label) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -60594,7 +60594,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetObjectLabel((OpenTK.Graphics.OpenGL.KhrDebug)identifier, (UInt32)name, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)label); + Delegates.glGetObjectLabel((OpenTK.Graphics.OpenGL.ObjectLabelIdentifier)identifier, (UInt32)name, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)label); length = *length_ptr; } } @@ -60607,13 +60607,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "KHR_debug", Version = "4.3", EntryPoint = "glGetObjectLabel")] public static - unsafe void GetObjectLabel(OpenTK.Graphics.OpenGL.KhrDebug identifier, Int32 name, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder label) + unsafe void GetObjectLabel(OpenTK.Graphics.OpenGL.ObjectLabelIdentifier identifier, Int32 name, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder label) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetObjectLabel((OpenTK.Graphics.OpenGL.KhrDebug)identifier, (UInt32)name, (Int32)bufSize, (Int32*)length, (StringBuilder)label); + Delegates.glGetObjectLabel((OpenTK.Graphics.OpenGL.ObjectLabelIdentifier)identifier, (UInt32)name, (Int32)bufSize, (Int32*)length, (StringBuilder)label); #if DEBUG } #endif @@ -60623,7 +60623,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "KHR_debug", Version = "4.3", EntryPoint = "glGetObjectLabel")] public static - void GetObjectLabel(OpenTK.Graphics.OpenGL.KhrDebug identifier, UInt32 name, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder label) + void GetObjectLabel(OpenTK.Graphics.OpenGL.ObjectLabelIdentifier identifier, UInt32 name, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder label) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -60633,7 +60633,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = length) { - Delegates.glGetObjectLabel((OpenTK.Graphics.OpenGL.KhrDebug)identifier, (UInt32)name, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)label); + Delegates.glGetObjectLabel((OpenTK.Graphics.OpenGL.ObjectLabelIdentifier)identifier, (UInt32)name, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)label); } } #if DEBUG @@ -60645,7 +60645,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "KHR_debug", Version = "4.3", EntryPoint = "glGetObjectLabel")] public static - void GetObjectLabel(OpenTK.Graphics.OpenGL.KhrDebug identifier, UInt32 name, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder label) + void GetObjectLabel(OpenTK.Graphics.OpenGL.ObjectLabelIdentifier identifier, UInt32 name, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder label) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -60655,7 +60655,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetObjectLabel((OpenTK.Graphics.OpenGL.KhrDebug)identifier, (UInt32)name, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)label); + Delegates.glGetObjectLabel((OpenTK.Graphics.OpenGL.ObjectLabelIdentifier)identifier, (UInt32)name, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)label); length = *length_ptr; } } @@ -60668,13 +60668,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "KHR_debug", Version = "4.3", EntryPoint = "glGetObjectLabel")] public static - unsafe void GetObjectLabel(OpenTK.Graphics.OpenGL.KhrDebug identifier, UInt32 name, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder label) + unsafe void GetObjectLabel(OpenTK.Graphics.OpenGL.ObjectLabelIdentifier identifier, UInt32 name, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder label) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetObjectLabel((OpenTK.Graphics.OpenGL.KhrDebug)identifier, (UInt32)name, (Int32)bufSize, (Int32*)length, (StringBuilder)label); + Delegates.glGetObjectLabel((OpenTK.Graphics.OpenGL.ObjectLabelIdentifier)identifier, (UInt32)name, (Int32)bufSize, (Int32*)length, (StringBuilder)label); #if DEBUG } #endif @@ -67757,13 +67757,13 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "VERSION_3_0", Version = "3.0", EntryPoint = "glGetStringi")] public static - String GetString(OpenTK.Graphics.OpenGL.StringName name, Int32 index) + String GetString(OpenTK.Graphics.OpenGL.StringNameIndexed name, Int32 index) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - unsafe { return new string((sbyte*)Delegates.glGetStringi((OpenTK.Graphics.OpenGL.StringName)name, (UInt32)index)); } + unsafe { return new string((sbyte*)Delegates.glGetStringi((OpenTK.Graphics.OpenGL.StringNameIndexed)name, (UInt32)index)); } #if DEBUG } #endif @@ -67786,13 +67786,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "VERSION_3_0", Version = "3.0", EntryPoint = "glGetStringi")] public static - String GetString(OpenTK.Graphics.OpenGL.StringName name, UInt32 index) + String GetString(OpenTK.Graphics.OpenGL.StringNameIndexed name, UInt32 index) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - unsafe { return new string((sbyte*)Delegates.glGetStringi((OpenTK.Graphics.OpenGL.StringName)name, (UInt32)index)); } + unsafe { return new string((sbyte*)Delegates.glGetStringi((OpenTK.Graphics.OpenGL.StringNameIndexed)name, (UInt32)index)); } #if DEBUG } #endif @@ -81634,13 +81634,13 @@ namespace OpenTK.Graphics.OpenGL /// [requires: v4.3 and KHR_debug] [AutoGenerated(Category = "KHR_debug", Version = "4.3", EntryPoint = "glObjectLabel")] public static - void ObjectLabel(OpenTK.Graphics.OpenGL.KhrDebug identifier, Int32 name, Int32 length, String label) + void ObjectLabel(OpenTK.Graphics.OpenGL.ObjectLabelIdentifier identifier, Int32 name, Int32 length, String label) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glObjectLabel((OpenTK.Graphics.OpenGL.KhrDebug)identifier, (UInt32)name, (Int32)length, (String)label); + Delegates.glObjectLabel((OpenTK.Graphics.OpenGL.ObjectLabelIdentifier)identifier, (UInt32)name, (Int32)length, (String)label); #if DEBUG } #endif @@ -81650,13 +81650,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "KHR_debug", Version = "4.3", EntryPoint = "glObjectLabel")] public static - void ObjectLabel(OpenTK.Graphics.OpenGL.KhrDebug identifier, UInt32 name, Int32 length, String label) + void ObjectLabel(OpenTK.Graphics.OpenGL.ObjectLabelIdentifier identifier, UInt32 name, Int32 length, String label) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glObjectLabel((OpenTK.Graphics.OpenGL.KhrDebug)identifier, (UInt32)name, (Int32)length, (String)label); + Delegates.glObjectLabel((OpenTK.Graphics.OpenGL.ObjectLabelIdentifier)identifier, (UInt32)name, (Int32)length, (String)label); #if DEBUG } #endif @@ -89940,13 +89940,13 @@ namespace OpenTK.Graphics.OpenGL /// [requires: v4.3 and KHR_debug] [AutoGenerated(Category = "KHR_debug", Version = "4.3", EntryPoint = "glPushDebugGroup")] public static - void PushDebugGroup(OpenTK.Graphics.OpenGL.KhrDebug source, Int32 id, Int32 length, String message) + void PushDebugGroup(OpenTK.Graphics.OpenGL.DebugSourceExternal source, Int32 id, Int32 length, String message) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glPushDebugGroup((OpenTK.Graphics.OpenGL.KhrDebug)source, (UInt32)id, (Int32)length, (String)message); + Delegates.glPushDebugGroup((OpenTK.Graphics.OpenGL.DebugSourceExternal)source, (UInt32)id, (Int32)length, (String)message); #if DEBUG } #endif @@ -89956,13 +89956,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "KHR_debug", Version = "4.3", EntryPoint = "glPushDebugGroup")] public static - void PushDebugGroup(OpenTK.Graphics.OpenGL.KhrDebug source, UInt32 id, Int32 length, String message) + void PushDebugGroup(OpenTK.Graphics.OpenGL.DebugSourceExternal source, UInt32 id, Int32 length, String message) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glPushDebugGroup((OpenTK.Graphics.OpenGL.KhrDebug)source, (UInt32)id, (Int32)length, (String)message); + Delegates.glPushDebugGroup((OpenTK.Graphics.OpenGL.DebugSourceExternal)source, (UInt32)id, (Int32)length, (String)message); #if DEBUG } #endif diff --git a/Source/OpenTK/Graphics/OpenGL/GLCore.cs b/Source/OpenTK/Graphics/OpenGL/GLCore.cs index 44051efd..bc56e90c 100644 --- a/Source/OpenTK/Graphics/OpenGL/GLCore.cs +++ b/Source/OpenTK/Graphics/OpenGL/GLCore.cs @@ -1040,7 +1040,7 @@ namespace OpenTK.Graphics.OpenGL internal extern static void DebugMessageCallbackARB(DebugProcArb callback, IntPtr userParam); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDebugMessageControl", ExactSpelling = true)] - internal extern static unsafe void DebugMessageControl(OpenTK.Graphics.OpenGL.KhrDebug source, OpenTK.Graphics.OpenGL.KhrDebug type, OpenTK.Graphics.OpenGL.KhrDebug severity, Int32 count, UInt32* ids, bool enabled); + internal extern static unsafe void DebugMessageControl(OpenTK.Graphics.OpenGL.DebugSourceControl source, OpenTK.Graphics.OpenGL.DebugTypeControl type, OpenTK.Graphics.OpenGL.DebugSeverityControl severity, Int32 count, UInt32* ids, bool enabled); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDebugMessageControlARB", ExactSpelling = true)] internal extern static unsafe void DebugMessageControlARB(OpenTK.Graphics.OpenGL.ArbDebugOutput source, OpenTK.Graphics.OpenGL.ArbDebugOutput type, OpenTK.Graphics.OpenGL.ArbDebugOutput severity, Int32 count, UInt32* ids, bool enabled); @@ -1049,7 +1049,7 @@ namespace OpenTK.Graphics.OpenGL internal extern static unsafe void DebugMessageEnableAMD(OpenTK.Graphics.OpenGL.AmdDebugOutput category, OpenTK.Graphics.OpenGL.AmdDebugOutput severity, Int32 count, UInt32* ids, bool enabled); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDebugMessageInsert", ExactSpelling = true)] - internal extern static void DebugMessageInsert(OpenTK.Graphics.OpenGL.KhrDebug source, OpenTK.Graphics.OpenGL.KhrDebug type, UInt32 id, OpenTK.Graphics.OpenGL.KhrDebug severity, Int32 length, String buf); + internal extern static void DebugMessageInsert(OpenTK.Graphics.OpenGL.DebugSourceExternal source, OpenTK.Graphics.OpenGL.DebugType type, UInt32 id, OpenTK.Graphics.OpenGL.DebugSeverity severity, Int32 length, String buf); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDebugMessageInsertAMD", ExactSpelling = true)] internal extern static void DebugMessageInsertAMD(OpenTK.Graphics.OpenGL.AmdDebugOutput category, OpenTK.Graphics.OpenGL.AmdDebugOutput severity, UInt32 id, Int32 length, String buf); @@ -2159,10 +2159,10 @@ namespace OpenTK.Graphics.OpenGL internal extern static unsafe void GetIntegerv(OpenTK.Graphics.OpenGL.GetPName pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetInternalformati64v", ExactSpelling = true)] - internal extern static unsafe void GetInternalformati64v(OpenTK.Graphics.OpenGL.ArbInternalformatQuery2 target, OpenTK.Graphics.OpenGL.ArbInternalformatQuery2 internalformat, OpenTK.Graphics.OpenGL.ArbInternalformatQuery2 pname, Int32 bufSize, [OutAttribute] Int64* @params); + internal extern static unsafe void GetInternalformati64v(OpenTK.Graphics.OpenGL.ImageTarget target, OpenTK.Graphics.OpenGL.All internalformat, OpenTK.Graphics.OpenGL.InternalFormatParameter pname, Int32 bufSize, [OutAttribute] Int64* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetInternalformativ", ExactSpelling = true)] - internal extern static unsafe void GetInternalformativ(OpenTK.Graphics.OpenGL.ArbInternalformatQuery target, OpenTK.Graphics.OpenGL.ArbInternalformatQuery internalformat, OpenTK.Graphics.OpenGL.ArbInternalformatQuery pname, Int32 bufSize, [OutAttribute] Int32* @params); + internal extern static unsafe void GetInternalformativ(OpenTK.Graphics.OpenGL.ImageTarget target, OpenTK.Graphics.OpenGL.All internalformat, OpenTK.Graphics.OpenGL.InternalFormatParameter pname, Int32 bufSize, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetInvariantBooleanvEXT", ExactSpelling = true)] internal extern static unsafe void GetInvariantBooleanvEXT(UInt32 id, OpenTK.Graphics.OpenGL.ExtVertexShader value, [OutAttribute] bool* data); @@ -2399,7 +2399,7 @@ namespace OpenTK.Graphics.OpenGL internal extern static unsafe void GetObjectBufferivATI(UInt32 buffer, OpenTK.Graphics.OpenGL.AtiVertexArrayObject pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetObjectLabel", ExactSpelling = true)] - internal extern static unsafe void GetObjectLabel(OpenTK.Graphics.OpenGL.KhrDebug identifier, UInt32 name, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder label); + internal extern static unsafe void GetObjectLabel(OpenTK.Graphics.OpenGL.ObjectLabelIdentifier identifier, UInt32 name, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder label); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetObjectParameterfvARB", ExactSpelling = true)] internal extern static unsafe void GetObjectParameterfvARB(UInt32 obj, OpenTK.Graphics.OpenGL.ArbShaderObjects pname, [OutAttribute] Single* @params); @@ -2678,7 +2678,7 @@ namespace OpenTK.Graphics.OpenGL internal extern static IntPtr GetString(OpenTK.Graphics.OpenGL.StringName name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetStringi", ExactSpelling = true)] - internal extern static IntPtr GetStringi(OpenTK.Graphics.OpenGL.StringName name, UInt32 index); + internal extern static IntPtr GetStringi(OpenTK.Graphics.OpenGL.StringNameIndexed name, UInt32 index); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetSubroutineIndex", ExactSpelling = true)] internal extern static Int32 GetSubroutineIndex(UInt32 program, OpenTK.Graphics.OpenGL.ShaderType shadertype, String name); @@ -4154,7 +4154,7 @@ namespace OpenTK.Graphics.OpenGL internal extern static unsafe void NormalStream3svATI(OpenTK.Graphics.OpenGL.AtiVertexStreams stream, Int16* coords); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glObjectLabel", ExactSpelling = true)] - internal extern static void ObjectLabel(OpenTK.Graphics.OpenGL.KhrDebug identifier, UInt32 name, Int32 length, String label); + internal extern static void ObjectLabel(OpenTK.Graphics.OpenGL.ObjectLabelIdentifier identifier, UInt32 name, Int32 length, String label); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glObjectPtrLabel", ExactSpelling = true)] internal extern static void ObjectPtrLabel(IntPtr ptr, Int32 length, String label); @@ -4931,7 +4931,7 @@ namespace OpenTK.Graphics.OpenGL internal extern static void PushClientAttribDefaultEXT(OpenTK.Graphics.OpenGL.ClientAttribMask mask); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPushDebugGroup", ExactSpelling = true)] - internal extern static void PushDebugGroup(OpenTK.Graphics.OpenGL.KhrDebug source, UInt32 id, Int32 length, String message); + internal extern static void PushDebugGroup(OpenTK.Graphics.OpenGL.DebugSourceExternal source, UInt32 id, Int32 length, String message); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPushMatrix", ExactSpelling = true)] internal extern static void PushMatrix(); diff --git a/Source/OpenTK/Graphics/OpenGL/GLDelegates.cs b/Source/OpenTK/Graphics/OpenGL/GLDelegates.cs index 0a1b4f31..7fa5b904 100644 --- a/Source/OpenTK/Graphics/OpenGL/GLDelegates.cs +++ b/Source/OpenTK/Graphics/OpenGL/GLDelegates.cs @@ -1038,7 +1038,7 @@ namespace OpenTK.Graphics.OpenGL internal delegate void DebugMessageCallbackARB(DebugProcArb callback, IntPtr userParam); internal static DebugMessageCallbackARB glDebugMessageCallbackARB; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void DebugMessageControl(OpenTK.Graphics.OpenGL.KhrDebug source, OpenTK.Graphics.OpenGL.KhrDebug type, OpenTK.Graphics.OpenGL.KhrDebug severity, Int32 count, UInt32* ids, bool enabled); + internal unsafe delegate void DebugMessageControl(OpenTK.Graphics.OpenGL.DebugSourceControl source, OpenTK.Graphics.OpenGL.DebugTypeControl type, OpenTK.Graphics.OpenGL.DebugSeverityControl severity, Int32 count, UInt32* ids, bool enabled); internal unsafe static DebugMessageControl glDebugMessageControl; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void DebugMessageControlARB(OpenTK.Graphics.OpenGL.ArbDebugOutput source, OpenTK.Graphics.OpenGL.ArbDebugOutput type, OpenTK.Graphics.OpenGL.ArbDebugOutput severity, Int32 count, UInt32* ids, bool enabled); @@ -1047,7 +1047,7 @@ namespace OpenTK.Graphics.OpenGL internal unsafe delegate void DebugMessageEnableAMD(OpenTK.Graphics.OpenGL.AmdDebugOutput category, OpenTK.Graphics.OpenGL.AmdDebugOutput severity, Int32 count, UInt32* ids, bool enabled); internal unsafe static DebugMessageEnableAMD glDebugMessageEnableAMD; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DebugMessageInsert(OpenTK.Graphics.OpenGL.KhrDebug source, OpenTK.Graphics.OpenGL.KhrDebug type, UInt32 id, OpenTK.Graphics.OpenGL.KhrDebug severity, Int32 length, String buf); + internal delegate void DebugMessageInsert(OpenTK.Graphics.OpenGL.DebugSourceExternal source, OpenTK.Graphics.OpenGL.DebugType type, UInt32 id, OpenTK.Graphics.OpenGL.DebugSeverity severity, Int32 length, String buf); internal static DebugMessageInsert glDebugMessageInsert; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void DebugMessageInsertAMD(OpenTK.Graphics.OpenGL.AmdDebugOutput category, OpenTK.Graphics.OpenGL.AmdDebugOutput severity, UInt32 id, Int32 length, String buf); @@ -2157,10 +2157,10 @@ namespace OpenTK.Graphics.OpenGL internal unsafe delegate void GetIntegerv(OpenTK.Graphics.OpenGL.GetPName pname, [OutAttribute] Int32* @params); internal unsafe static GetIntegerv glGetIntegerv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetInternalformati64v(OpenTK.Graphics.OpenGL.ArbInternalformatQuery2 target, OpenTK.Graphics.OpenGL.ArbInternalformatQuery2 internalformat, OpenTK.Graphics.OpenGL.ArbInternalformatQuery2 pname, Int32 bufSize, [OutAttribute] Int64* @params); + internal unsafe delegate void GetInternalformati64v(OpenTK.Graphics.OpenGL.ImageTarget target, OpenTK.Graphics.OpenGL.All internalformat, OpenTK.Graphics.OpenGL.InternalFormatParameter pname, Int32 bufSize, [OutAttribute] Int64* @params); internal unsafe static GetInternalformati64v glGetInternalformati64v; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetInternalformativ(OpenTK.Graphics.OpenGL.ArbInternalformatQuery target, OpenTK.Graphics.OpenGL.ArbInternalformatQuery internalformat, OpenTK.Graphics.OpenGL.ArbInternalformatQuery pname, Int32 bufSize, [OutAttribute] Int32* @params); + internal unsafe delegate void GetInternalformativ(OpenTK.Graphics.OpenGL.ImageTarget target, OpenTK.Graphics.OpenGL.All internalformat, OpenTK.Graphics.OpenGL.InternalFormatParameter pname, Int32 bufSize, [OutAttribute] Int32* @params); internal unsafe static GetInternalformativ glGetInternalformativ; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetInvariantBooleanvEXT(UInt32 id, OpenTK.Graphics.OpenGL.ExtVertexShader value, [OutAttribute] bool* data); @@ -2397,7 +2397,7 @@ namespace OpenTK.Graphics.OpenGL internal unsafe delegate void GetObjectBufferivATI(UInt32 buffer, OpenTK.Graphics.OpenGL.AtiVertexArrayObject pname, [OutAttribute] Int32* @params); internal unsafe static GetObjectBufferivATI glGetObjectBufferivATI; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetObjectLabel(OpenTK.Graphics.OpenGL.KhrDebug identifier, UInt32 name, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder label); + internal unsafe delegate void GetObjectLabel(OpenTK.Graphics.OpenGL.ObjectLabelIdentifier identifier, UInt32 name, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder label); internal unsafe static GetObjectLabel glGetObjectLabel; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetObjectParameterfvARB(UInt32 obj, OpenTK.Graphics.OpenGL.ArbShaderObjects pname, [OutAttribute] Single* @params); @@ -2676,7 +2676,7 @@ namespace OpenTK.Graphics.OpenGL internal delegate IntPtr GetString(OpenTK.Graphics.OpenGL.StringName name); internal static GetString glGetString; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate IntPtr GetStringi(OpenTK.Graphics.OpenGL.StringName name, UInt32 index); + internal delegate IntPtr GetStringi(OpenTK.Graphics.OpenGL.StringNameIndexed name, UInt32 index); internal static GetStringi glGetStringi; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Int32 GetSubroutineIndex(UInt32 program, OpenTK.Graphics.OpenGL.ShaderType shadertype, String name); @@ -4152,7 +4152,7 @@ namespace OpenTK.Graphics.OpenGL internal unsafe delegate void NormalStream3svATI(OpenTK.Graphics.OpenGL.AtiVertexStreams stream, Int16* coords); internal unsafe static NormalStream3svATI glNormalStream3svATI; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ObjectLabel(OpenTK.Graphics.OpenGL.KhrDebug identifier, UInt32 name, Int32 length, String label); + internal delegate void ObjectLabel(OpenTK.Graphics.OpenGL.ObjectLabelIdentifier identifier, UInt32 name, Int32 length, String label); internal static ObjectLabel glObjectLabel; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void ObjectPtrLabel(IntPtr ptr, Int32 length, String label); @@ -4929,7 +4929,7 @@ namespace OpenTK.Graphics.OpenGL internal delegate void PushClientAttribDefaultEXT(OpenTK.Graphics.OpenGL.ClientAttribMask mask); internal static PushClientAttribDefaultEXT glPushClientAttribDefaultEXT; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void PushDebugGroup(OpenTK.Graphics.OpenGL.KhrDebug source, UInt32 id, Int32 length, String message); + internal delegate void PushDebugGroup(OpenTK.Graphics.OpenGL.DebugSourceExternal source, UInt32 id, Int32 length, String message); internal static PushDebugGroup glPushDebugGroup; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void PushMatrix(); diff --git a/Source/OpenTK/Graphics/OpenGL/GLEnums.cs b/Source/OpenTK/Graphics/OpenGL/GLEnums.cs index e908bb64..f10c610f 100644 --- a/Source/OpenTK/Graphics/OpenGL/GLEnums.cs +++ b/Source/OpenTK/Graphics/OpenGL/GLEnums.cs @@ -736,7 +736,7 @@ namespace OpenTK.Graphics.OpenGL } /// - /// Used in GL.Ingr.BlendFuncSeparate, GL.Sgix.IglooInterface + /// Used in GL.GetInternalformat, GL.Ingr.BlendFuncSeparate, GL.Sgix.IglooInterface /// public enum All : int { @@ -23167,7 +23167,7 @@ namespace OpenTK.Graphics.OpenGL } /// - /// Used in GL.GetInternalformat + /// Not used directly. /// public enum ArbInternalformatQuery : int { @@ -23178,7 +23178,7 @@ namespace OpenTK.Graphics.OpenGL } /// - /// Used in GL.GetInternalformat + /// Not used directly. /// public enum ArbInternalformatQuery2 : int { @@ -29912,6 +29912,227 @@ namespace OpenTK.Graphics.OpenGL DoubleExt = ((int)0x140A) , } + /// + /// Used in GL.DebugMessageInsert + /// + public enum DebugSeverity : int + { + /// + /// Original was GL_DEBUG_SEVERITY_NOTIFICATION = 0x826B + /// + DebugSeverityNotification = ((int)0x826B) , + /// + /// Original was GL_DEBUG_SEVERITY_HIGH = 0x9146 + /// + DebugSeverityHigh = ((int)0x9146) , + /// + /// Original was GL_DEBUG_SEVERITY_MEDIUM = 0x9147 + /// + DebugSeverityMedium = ((int)0x9147) , + /// + /// Original was GL_DEBUG_SEVERITY_LOW = 0x9148 + /// + DebugSeverityLow = ((int)0x9148) , + } + + /// + /// Used in GL.DebugMessageControl + /// + public enum DebugSeverityControl : int + { + /// + /// Original was GL_DONT_CARE = 0x1100 + /// + DontCare = ((int)0x1100) , + /// + /// Original was GL_DEBUG_SEVERITY_NOTIFICATION = 0x826B + /// + DebugSeverityNotification = ((int)0x826B) , + /// + /// Original was GL_DEBUG_SEVERITY_HIGH = 0x9146 + /// + DebugSeverityHigh = ((int)0x9146) , + /// + /// Original was GL_DEBUG_SEVERITY_MEDIUM = 0x9147 + /// + DebugSeverityMedium = ((int)0x9147) , + /// + /// Original was GL_DEBUG_SEVERITY_LOW = 0x9148 + /// + DebugSeverityLow = ((int)0x9148) , + } + + /// + /// Not used directly. + /// + public enum DebugSource : int + { + /// + /// Original was GL_DEBUG_SOURCE_API = 0x8246 + /// + DebugSourceApi = ((int)0x8246) , + /// + /// Original was GL_DEBUG_SOURCE_WINDOW_SYSTEM = 0x8247 + /// + DebugSourceWindowSystem = ((int)0x8247) , + /// + /// Original was GL_DEBUG_SOURCE_SHADER_COMPILER = 0x8248 + /// + DebugSourceShaderCompiler = ((int)0x8248) , + /// + /// Original was GL_DEBUG_SOURCE_THIRD_PARTY = 0x8249 + /// + DebugSourceThirdParty = ((int)0x8249) , + /// + /// Original was GL_DEBUG_SOURCE_APPLICATION = 0x824A + /// + DebugSourceApplication = ((int)0x824A) , + /// + /// Original was GL_DEBUG_SOURCE_OTHER = 0x824B + /// + DebugSourceOther = ((int)0x824B) , + } + + /// + /// Used in GL.DebugMessageControl + /// + public enum DebugSourceControl : int + { + /// + /// Original was GL_DONT_CARE = 0x1100 + /// + DontCare = ((int)0x1100) , + /// + /// Original was GL_DEBUG_SOURCE_API = 0x8246 + /// + DebugSourceApi = ((int)0x8246) , + /// + /// Original was GL_DEBUG_SOURCE_WINDOW_SYSTEM = 0x8247 + /// + DebugSourceWindowSystem = ((int)0x8247) , + /// + /// Original was GL_DEBUG_SOURCE_SHADER_COMPILER = 0x8248 + /// + DebugSourceShaderCompiler = ((int)0x8248) , + /// + /// Original was GL_DEBUG_SOURCE_THIRD_PARTY = 0x8249 + /// + DebugSourceThirdParty = ((int)0x8249) , + /// + /// Original was GL_DEBUG_SOURCE_APPLICATION = 0x824A + /// + DebugSourceApplication = ((int)0x824A) , + /// + /// Original was GL_DEBUG_SOURCE_OTHER = 0x824B + /// + DebugSourceOther = ((int)0x824B) , + } + + /// + /// Used in GL.DebugMessageInsert, GL.PushDebugGroup + /// + public enum DebugSourceExternal : int + { + /// + /// Original was GL_DEBUG_SOURCE_THIRD_PARTY = 0x8249 + /// + DebugSourceThirdParty = ((int)0x8249) , + /// + /// Original was GL_DEBUG_SOURCE_APPLICATION = 0x824A + /// + DebugSourceApplication = ((int)0x824A) , + } + + /// + /// Used in GL.DebugMessageInsert + /// + public enum DebugType : int + { + /// + /// Original was GL_DEBUG_TYPE_ERROR = 0x824C + /// + DebugTypeError = ((int)0x824C) , + /// + /// Original was GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR = 0x824D + /// + DebugTypeDeprecatedBehavior = ((int)0x824D) , + /// + /// Original was GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR = 0x824E + /// + DebugTypeUndefinedBehavior = ((int)0x824E) , + /// + /// Original was GL_DEBUG_TYPE_PORTABILITY = 0x824F + /// + DebugTypePortability = ((int)0x824F) , + /// + /// Original was GL_DEBUG_TYPE_PERFORMANCE = 0x8250 + /// + DebugTypePerformance = ((int)0x8250) , + /// + /// Original was GL_DEBUG_TYPE_OTHER = 0x8251 + /// + DebugTypeOther = ((int)0x8251) , + /// + /// Original was GL_DEBUG_TYPE_MARKER = 0x8268 + /// + DebugTypeMarker = ((int)0x8268) , + /// + /// Original was GL_DEBUG_TYPE_PUSH_GROUP = 0x8269 + /// + DebugTypePushGroup = ((int)0x8269) , + /// + /// Original was GL_DEBUG_TYPE_POP_GROUP = 0x826A + /// + DebugTypePopGroup = ((int)0x826A) , + } + + /// + /// Used in GL.DebugMessageControl + /// + public enum DebugTypeControl : int + { + /// + /// Original was GL_DONT_CARE = 0x1100 + /// + DontCare = ((int)0x1100) , + /// + /// Original was GL_DEBUG_TYPE_ERROR = 0x824C + /// + DebugTypeError = ((int)0x824C) , + /// + /// Original was GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR = 0x824D + /// + DebugTypeDeprecatedBehavior = ((int)0x824D) , + /// + /// Original was GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR = 0x824E + /// + DebugTypeUndefinedBehavior = ((int)0x824E) , + /// + /// Original was GL_DEBUG_TYPE_PORTABILITY = 0x824F + /// + DebugTypePortability = ((int)0x824F) , + /// + /// Original was GL_DEBUG_TYPE_PERFORMANCE = 0x8250 + /// + DebugTypePerformance = ((int)0x8250) , + /// + /// Original was GL_DEBUG_TYPE_OTHER = 0x8251 + /// + DebugTypeOther = ((int)0x8251) , + /// + /// Original was GL_DEBUG_TYPE_MARKER = 0x8268 + /// + DebugTypeMarker = ((int)0x8268) , + /// + /// Original was GL_DEBUG_TYPE_PUSH_GROUP = 0x8269 + /// + DebugTypePushGroup = ((int)0x8269) , + /// + /// Original was GL_DEBUG_TYPE_POP_GROUP = 0x826A + /// + DebugTypePopGroup = ((int)0x826A) , + } + /// /// Used in GL.DepthFunc, GL.NV.PathCoverDepthFunc /// @@ -30665,6 +30886,10 @@ namespace OpenTK.Graphics.OpenGL /// SharedTexturePaletteExt = ((int)0x81FB) , /// + /// Original was GL_DEBUG_OUTPUT_SYNCHRONOUS = 0x8242 + /// + DebugOutputSynchronous = ((int)0x8242) , + /// /// Original was GL_ASYNC_HISTOGRAM_SGIX = 0x832C /// AsyncHistogramSgix = ((int)0x832C) , @@ -30792,6 +31017,10 @@ namespace OpenTK.Graphics.OpenGL /// Original was GL_PRIMITIVE_RESTART = 0x8F9D /// PrimitiveRestart = ((int)0x8F9D) , + /// + /// Original was GL_DEBUG_OUTPUT = 0x92E0 + /// + DebugOutput = ((int)0x92E0) , } /// @@ -39764,7 +39993,7 @@ namespace OpenTK.Graphics.OpenGL } /// - /// Used in GL.CopyImageSubData + /// Used in GL.CopyImageSubData, GL.GetInternalformat /// public enum ImageTarget : int { @@ -40152,7 +40381,294 @@ namespace OpenTK.Graphics.OpenGL } /// - /// Used in GL.DebugMessageControl, GL.DebugMessageInsert, GL.GetDebugMessageLog, GL.GetObjectLabel, GL.ObjectLabel, GL.PushDebugGroup + /// Used in GL.GetInternalformat + /// + public enum InternalFormatParameter : int + { + /// + /// Original was GL_SAMPLES = 0x80A9 + /// + Samples = ((int)0x80A9) , + /// + /// Original was GL_INTERNALFORMAT_SUPPORTED = 0x826F + /// + InternalformatSupported = ((int)0x826F) , + /// + /// Original was GL_INTERNALFORMAT_PREFERRED = 0x8270 + /// + InternalformatPreferred = ((int)0x8270) , + /// + /// Original was GL_INTERNALFORMAT_RED_SIZE = 0x8271 + /// + InternalformatRedSize = ((int)0x8271) , + /// + /// Original was GL_INTERNALFORMAT_GREEN_SIZE = 0x8272 + /// + InternalformatGreenSize = ((int)0x8272) , + /// + /// Original was GL_INTERNALFORMAT_BLUE_SIZE = 0x8273 + /// + InternalformatBlueSize = ((int)0x8273) , + /// + /// Original was GL_INTERNALFORMAT_ALPHA_SIZE = 0x8274 + /// + InternalformatAlphaSize = ((int)0x8274) , + /// + /// Original was GL_INTERNALFORMAT_DEPTH_SIZE = 0x8275 + /// + InternalformatDepthSize = ((int)0x8275) , + /// + /// Original was GL_INTERNALFORMAT_STENCIL_SIZE = 0x8276 + /// + InternalformatStencilSize = ((int)0x8276) , + /// + /// Original was GL_INTERNALFORMAT_SHARED_SIZE = 0x8277 + /// + InternalformatSharedSize = ((int)0x8277) , + /// + /// Original was GL_INTERNALFORMAT_RED_TYPE = 0x8278 + /// + InternalformatRedType = ((int)0x8278) , + /// + /// Original was GL_INTERNALFORMAT_GREEN_TYPE = 0x8279 + /// + InternalformatGreenType = ((int)0x8279) , + /// + /// Original was GL_INTERNALFORMAT_BLUE_TYPE = 0x827A + /// + InternalformatBlueType = ((int)0x827A) , + /// + /// Original was GL_INTERNALFORMAT_ALPHA_TYPE = 0x827B + /// + InternalformatAlphaType = ((int)0x827B) , + /// + /// Original was GL_INTERNALFORMAT_DEPTH_TYPE = 0x827C + /// + InternalformatDepthType = ((int)0x827C) , + /// + /// Original was GL_INTERNALFORMAT_STENCIL_TYPE = 0x827D + /// + InternalformatStencilType = ((int)0x827D) , + /// + /// Original was GL_MAX_WIDTH = 0x827E + /// + MaxWidth = ((int)0x827E) , + /// + /// Original was GL_MAX_HEIGHT = 0x827F + /// + MaxHeight = ((int)0x827F) , + /// + /// Original was GL_MAX_DEPTH = 0x8280 + /// + MaxDepth = ((int)0x8280) , + /// + /// Original was GL_MAX_LAYERS = 0x8281 + /// + MaxLayers = ((int)0x8281) , + /// + /// Original was GL_MAX_COMBINED_DIMENSIONS = 0x8282 + /// + MaxCombinedDimensions = ((int)0x8282) , + /// + /// Original was GL_COLOR_COMPONENTS = 0x8283 + /// + ColorComponents = ((int)0x8283) , + /// + /// Original was GL_DEPTH_COMPONENTS = 0x8284 + /// + DepthComponents = ((int)0x8284) , + /// + /// Original was GL_STENCIL_COMPONENTS = 0x8285 + /// + StencilComponents = ((int)0x8285) , + /// + /// Original was GL_COLOR_RENDERABLE = 0x8286 + /// + ColorRenderable = ((int)0x8286) , + /// + /// Original was GL_DEPTH_RENDERABLE = 0x8287 + /// + DepthRenderable = ((int)0x8287) , + /// + /// Original was GL_STENCIL_RENDERABLE = 0x8288 + /// + StencilRenderable = ((int)0x8288) , + /// + /// Original was GL_FRAMEBUFFER_RENDERABLE = 0x8289 + /// + FramebufferRenderable = ((int)0x8289) , + /// + /// Original was GL_FRAMEBUFFER_RENDERABLE_LAYERED = 0x828A + /// + FramebufferRenderableLayered = ((int)0x828A) , + /// + /// Original was GL_FRAMEBUFFER_BLEND = 0x828B + /// + FramebufferBlend = ((int)0x828B) , + /// + /// Original was GL_READ_PIXELS_FORMAT = 0x828D + /// + ReadPixelsFormat = ((int)0x828D) , + /// + /// Original was GL_READ_PIXELS_TYPE = 0x828E + /// + ReadPixelsType = ((int)0x828E) , + /// + /// Original was GL_TEXTURE_IMAGE_FORMAT = 0x828F + /// + TextureImageFormat = ((int)0x828F) , + /// + /// Original was GL_TEXTURE_IMAGE_TYPE = 0x8290 + /// + TextureImageType = ((int)0x8290) , + /// + /// Original was GL_GET_TEXTURE_IMAGE_FORMAT = 0x8291 + /// + GetTextureImageFormat = ((int)0x8291) , + /// + /// Original was GL_GET_TEXTURE_IMAGE_TYPE = 0x8292 + /// + GetTextureImageType = ((int)0x8292) , + /// + /// Original was GL_MIPMAP = 0x8293 + /// + Mipmap = ((int)0x8293) , + /// + /// Original was GL_MANUAL_GENERATE_MIPMAP = 0x8294 + /// + ManualGenerateMipmap = ((int)0x8294) , + /// + /// Original was GL_COLOR_ENCODING = 0x8296 + /// + ColorEncoding = ((int)0x8296) , + /// + /// Original was GL_SRGB_READ = 0x8297 + /// + SrgbRead = ((int)0x8297) , + /// + /// Original was GL_SRGB_WRITE = 0x8298 + /// + SrgbWrite = ((int)0x8298) , + /// + /// Original was GL_FILTER = 0x829A + /// + Filter = ((int)0x829A) , + /// + /// Original was GL_VERTEX_TEXTURE = 0x829B + /// + VertexTexture = ((int)0x829B) , + /// + /// Original was GL_TESS_CONTROL_TEXTURE = 0x829C + /// + TessControlTexture = ((int)0x829C) , + /// + /// Original was GL_TESS_EVALUATION_TEXTURE = 0x829D + /// + TessEvaluationTexture = ((int)0x829D) , + /// + /// Original was GL_GEOMETRY_TEXTURE = 0x829E + /// + GeometryTexture = ((int)0x829E) , + /// + /// Original was GL_FRAGMENT_TEXTURE = 0x829F + /// + FragmentTexture = ((int)0x829F) , + /// + /// Original was GL_COMPUTE_TEXTURE = 0x82A0 + /// + ComputeTexture = ((int)0x82A0) , + /// + /// Original was GL_TEXTURE_SHADOW = 0x82A1 + /// + TextureShadow = ((int)0x82A1) , + /// + /// Original was GL_TEXTURE_GATHER = 0x82A2 + /// + TextureGather = ((int)0x82A2) , + /// + /// Original was GL_TEXTURE_GATHER_SHADOW = 0x82A3 + /// + TextureGatherShadow = ((int)0x82A3) , + /// + /// Original was GL_SHADER_IMAGE_LOAD = 0x82A4 + /// + ShaderImageLoad = ((int)0x82A4) , + /// + /// Original was GL_SHADER_IMAGE_STORE = 0x82A5 + /// + ShaderImageStore = ((int)0x82A5) , + /// + /// Original was GL_SHADER_IMAGE_ATOMIC = 0x82A6 + /// + ShaderImageAtomic = ((int)0x82A6) , + /// + /// Original was GL_IMAGE_TEXEL_SIZE = 0x82A7 + /// + ImageTexelSize = ((int)0x82A7) , + /// + /// Original was GL_IMAGE_COMPATIBILITY_CLASS = 0x82A8 + /// + ImageCompatibilityClass = ((int)0x82A8) , + /// + /// Original was GL_IMAGE_PIXEL_FORMAT = 0x82A9 + /// + ImagePixelFormat = ((int)0x82A9) , + /// + /// Original was GL_IMAGE_PIXEL_TYPE = 0x82AA + /// + ImagePixelType = ((int)0x82AA) , + /// + /// Original was GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST = 0x82AC + /// + SimultaneousTextureAndDepthTest = ((int)0x82AC) , + /// + /// Original was GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST = 0x82AD + /// + SimultaneousTextureAndStencilTest = ((int)0x82AD) , + /// + /// Original was GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE = 0x82AF + /// + SimultaneousTextureAndStencilWrite = ((int)0x82AF) , + /// + /// Original was GL_TEXTURE_COMPRESSED_BLOCK_WIDTH = 0x82B1 + /// + TextureCompressedBlockWidth = ((int)0x82B1) , + /// + /// Original was GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT = 0x82B2 + /// + TextureCompressedBlockHeight = ((int)0x82B2) , + /// + /// Original was GL_TEXTURE_COMPRESSED_BLOCK_SIZE = 0x82B3 + /// + TextureCompressedBlockSize = ((int)0x82B3) , + /// + /// Original was GL_CLEAR_BUFFER = 0x82B4 + /// + ClearBuffer = ((int)0x82B4) , + /// + /// Original was GL_TEXTURE_VIEW = 0x82B5 + /// + TextureView = ((int)0x82B5) , + /// + /// Original was GL_VIEW_COMPATIBILITY_CLASS = 0x82B6 + /// + ViewCompatibilityClass = ((int)0x82B6) , + /// + /// Original was GL_TEXTURE_COMPRESSED = 0x86A1 + /// + TextureCompressed = ((int)0x86A1) , + /// + /// Original was GL_IMAGE_FORMAT_COMPATIBILITY_TYPE = 0x90C7 + /// + ImageFormatCompatibilityType = ((int)0x90C7) , + /// + /// Original was GL_NUM_SAMPLE_COUNTS = 0x9380 + /// + NumSampleCounts = ((int)0x9380) , + } + + /// + /// Used in GL.GetDebugMessageLog /// public enum KhrDebug : int { @@ -45551,6 +46067,57 @@ namespace OpenTK.Graphics.OpenGL { } + /// + /// Used in GL.GetObjectLabel, GL.ObjectLabel + /// + public enum ObjectLabelIdentifier : int + { + /// + /// Original was GL_TEXTURE = 0x1702 + /// + Texture = ((int)0x1702) , + /// + /// Original was GL_VERTEX_ARRAY = 0x8074 + /// + VertexArray = ((int)0x8074) , + /// + /// Original was GL_BUFFER = 0x82E0 + /// + Buffer = ((int)0x82E0) , + /// + /// Original was GL_SHADER = 0x82E1 + /// + Shader = ((int)0x82E1) , + /// + /// Original was GL_PROGRAM = 0x82E2 + /// + Program = ((int)0x82E2) , + /// + /// Original was GL_QUERY = 0x82E3 + /// + Query = ((int)0x82E3) , + /// + /// Original was GL_PROGRAM_PIPELINE = 0x82E4 + /// + ProgramPipeline = ((int)0x82E4) , + /// + /// Original was GL_SAMPLER = 0x82E6 + /// + Sampler = ((int)0x82E6) , + /// + /// Original was GL_FRAMEBUFFER = 0x8D40 + /// + Framebuffer = ((int)0x8D40) , + /// + /// Original was GL_RENDERBUFFER = 0x8D41 + /// + Renderbuffer = ((int)0x8D41) , + /// + /// Original was GL_TRANSFORM_FEEDBACK = 0x8E22 + /// + TransformFeedback = ((int)0x8E22) , + } + /// /// Not used directly. /// @@ -51523,6 +52090,21 @@ namespace OpenTK.Graphics.OpenGL ShadingLanguageVersion = ((int)0x8B8C) , } + /// + /// Used in GL.GetString + /// + public enum StringNameIndexed : int + { + /// + /// Original was GL_EXTENSIONS = 0x1F03 + /// + Extensions = ((int)0x1F03) , + /// + /// Original was GL_SHADING_LANGUAGE_VERSION = 0x8B8C + /// + ShadingLanguageVersion = ((int)0x8B8C) , + } + /// /// Not used directly. ///