From 9b5be9300b35760d79dfe10ad070682b31ae7ba0 Mon Sep 17 00:00:00 2001 From: Stefanos A Date: Mon, 4 Nov 2013 00:04:09 +0100 Subject: [PATCH] Strongly-typed enums for ES 3.0 (WIP2) Added strongly-typed enums for sections: Vertices, Shaders and Programs. Added a number of missing enums for ES 2.0. Normalized several APIs between OpenGL and OpenGL ES. --- Source/Bind/Specifications/GL2/overrides.xml | 345 ++++++++- Source/OpenTK/Graphics/ES20/ES20.cs | 132 ++-- Source/OpenTK/Graphics/ES20/ES20Core.cs | 22 +- Source/OpenTK/Graphics/ES20/ES20Delegates.cs | 22 +- Source/OpenTK/Graphics/ES20/ES20Enums.cs | 92 ++- Source/OpenTK/Graphics/ES30/ES30.cs | 136 ++-- Source/OpenTK/Graphics/ES30/ES30Delegates.cs | 16 +- Source/OpenTK/Graphics/ES30/ES30Enums.cs | 658 +++++++++++++++--- Source/OpenTK/Graphics/ES30/ES3Core.cs | 16 +- Source/OpenTK/Graphics/OpenGL/GL.cs | 36 +- Source/OpenTK/Graphics/OpenGL/GLCore.cs | 6 +- Source/OpenTK/Graphics/OpenGL/GLDelegates.cs | 6 +- Source/OpenTK/Graphics/OpenGL/GLEnums.cs | 168 ++++- Source/OpenTK/Graphics/OpenGL4/GL4.cs | 36 +- Source/OpenTK/Graphics/OpenGL4/GL4Core.cs | 6 +- .../OpenTK/Graphics/OpenGL4/GL4Delegates.cs | 6 +- Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs | 168 ++++- 17 files changed, 1532 insertions(+), 339 deletions(-) diff --git a/Source/Bind/Specifications/GL2/overrides.xml b/Source/Bind/Specifications/GL2/overrides.xml index 2190d0e0..8837ad13 100644 --- a/Source/Bind/Specifications/GL2/overrides.xml +++ b/Source/Bind/Specifications/GL2/overrides.xml @@ -298,7 +298,7 @@ - BeginFeedbackMode + TransformFeedbackPrimitiveType @@ -334,7 +334,7 @@ - ActiveAttribType + TransformFeedbackType @@ -871,7 +871,7 @@ ShaderType - ShaderPrecisionType + ShaderPrecision @@ -3618,7 +3618,7 @@ - + @@ -3948,9 +3948,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -4422,6 +4463,16 @@ + + + + + + + + + + @@ -4496,6 +4547,15 @@ + + + + + + + + + @@ -4614,8 +4674,26 @@ - + + + + + + + + + + + + + + + + + + + @@ -4802,6 +4880,11 @@ + + + + + @@ -5008,7 +5091,7 @@ TransformFeedbackTarget - BeginFeedbackMode + TransformFeedbackPrimitiveType @@ -5031,13 +5114,141 @@ CullFaceMode + + + + VertexAttribIntegerType + + + + + ProgramParameterName + + + + + ActiveUniformType + + + ActiveUniformParameter + + + ActiveUniformBlockParameter + + + + + TransformFeedbackType + + + TransformFeedbackMode + + + + + ShaderParameter + + + ShaderType + ShaderPrecision + + + VertexAttribParameter + + + VertexAttribPointerParameter + + + + + ProgramParameter + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -5099,9 +5310,15 @@ + + + + + - - + + + @@ -5124,6 +5341,23 @@ + + + + + + + + + + + + + + + + + @@ -5149,9 +5383,96 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Source/OpenTK/Graphics/ES20/ES20.cs b/Source/OpenTK/Graphics/ES20/ES20.cs index 210f912b..de567769 100644 --- a/Source/OpenTK/Graphics/ES20/ES20.cs +++ b/Source/OpenTK/Graphics/ES20/ES20.cs @@ -1267,13 +1267,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "ANGLE_framebuffer_blit", Version = "", EntryPoint = "glBlitFramebufferANGLE")] public static - void BlitFramebuffer(Int32 srcX0, Int32 srcY0, Int32 srcX1, Int32 srcY1, Int32 dstX0, Int32 dstY0, Int32 dstX1, Int32 dstY1, OpenTK.Graphics.ES20.ClearBufferMask mask, BlitFramebufferFilter filter) + void BlitFramebuffer(Int32 srcX0, Int32 srcY0, Int32 srcX1, Int32 srcY1, Int32 dstX0, Int32 dstY0, Int32 dstX1, Int32 dstY1, OpenTK.Graphics.ES20.ClearBufferMask mask, OpenTK.Graphics.ES20.BlitFramebufferFilter filter) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBlitFramebufferANGLE((Int32)srcX0, (Int32)srcY0, (Int32)srcX1, (Int32)srcY1, (Int32)dstX0, (Int32)dstY0, (Int32)dstX1, (Int32)dstY1, (OpenTK.Graphics.ES20.ClearBufferMask)mask, (BlitFramebufferFilter)filter); + Delegates.glBlitFramebufferANGLE((Int32)srcX0, (Int32)srcY0, (Int32)srcX1, (Int32)srcY1, (Int32)dstX0, (Int32)dstY0, (Int32)dstX1, (Int32)dstY1, (OpenTK.Graphics.ES20.ClearBufferMask)mask, (OpenTK.Graphics.ES20.BlitFramebufferFilter)filter); #if DEBUG } #endif @@ -21573,13 +21573,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "EXT_disjoint_timer_query|EXT_occlusion_query_boolean", Version = "", EntryPoint = "glBeginQueryEXT")] public static - void BeginQuery(QueryTarget target, Int32 id) + void BeginQuery(OpenTK.Graphics.ES20.QueryTarget target, Int32 id) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBeginQueryEXT((QueryTarget)target, (UInt32)id); + Delegates.glBeginQueryEXT((OpenTK.Graphics.ES20.QueryTarget)target, (UInt32)id); #if DEBUG } #endif @@ -21602,13 +21602,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "EXT_disjoint_timer_query|EXT_occlusion_query_boolean", Version = "", EntryPoint = "glBeginQueryEXT")] public static - void BeginQuery(QueryTarget target, UInt32 id) + void BeginQuery(OpenTK.Graphics.ES20.QueryTarget target, UInt32 id) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBeginQueryEXT((QueryTarget)target, (UInt32)id); + Delegates.glBeginQueryEXT((OpenTK.Graphics.ES20.QueryTarget)target, (UInt32)id); #if DEBUG } #endif @@ -22655,13 +22655,13 @@ namespace OpenTK.Graphics.ES20 /// [requires: EXT_disjoint_timer_query|EXT_occlusion_query_boolean] [AutoGenerated(Category = "EXT_disjoint_timer_query|EXT_occlusion_query_boolean", Version = "", EntryPoint = "glEndQueryEXT")] public static - void EndQuery(QueryTarget target) + void EndQuery(OpenTK.Graphics.ES20.QueryTarget target) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glEndQueryEXT((QueryTarget)target); + Delegates.glEndQueryEXT((OpenTK.Graphics.ES20.QueryTarget)target); #if DEBUG } #endif @@ -24279,7 +24279,7 @@ namespace OpenTK.Graphics.ES20 /// [requires: EXT_disjoint_timer_query|EXT_occlusion_query_boolean] [AutoGenerated(Category = "EXT_disjoint_timer_query|EXT_occlusion_query_boolean", Version = "", EntryPoint = "glGetQueryivEXT")] public static - void GetQuery(QueryTarget target, GetQueryParam pname, [OutAttribute] Int32[] @params) + void GetQuery(OpenTK.Graphics.ES20.QueryTarget target, OpenTK.Graphics.ES20.GetQueryParam pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -24289,7 +24289,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetQueryivEXT((QueryTarget)target, (GetQueryParam)pname, (Int32*)@params_ptr); + Delegates.glGetQueryivEXT((OpenTK.Graphics.ES20.QueryTarget)target, (OpenTK.Graphics.ES20.GetQueryParam)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -24300,7 +24300,7 @@ namespace OpenTK.Graphics.ES20 /// [requires: EXT_disjoint_timer_query|EXT_occlusion_query_boolean] [AutoGenerated(Category = "EXT_disjoint_timer_query|EXT_occlusion_query_boolean", Version = "", EntryPoint = "glGetQueryivEXT")] public static - void GetQuery(QueryTarget target, GetQueryParam pname, [OutAttribute] out Int32 @params) + void GetQuery(OpenTK.Graphics.ES20.QueryTarget target, OpenTK.Graphics.ES20.GetQueryParam pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -24310,7 +24310,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetQueryivEXT((QueryTarget)target, (GetQueryParam)pname, (Int32*)@params_ptr); + Delegates.glGetQueryivEXT((OpenTK.Graphics.ES20.QueryTarget)target, (OpenTK.Graphics.ES20.GetQueryParam)pname, (Int32*)@params_ptr); @params = *@params_ptr; } } @@ -24323,13 +24323,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "EXT_disjoint_timer_query|EXT_occlusion_query_boolean", Version = "", EntryPoint = "glGetQueryivEXT")] public static - unsafe void GetQuery(QueryTarget target, GetQueryParam pname, [OutAttribute] Int32* @params) + unsafe void GetQuery(OpenTK.Graphics.ES20.QueryTarget target, OpenTK.Graphics.ES20.GetQueryParam pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetQueryivEXT((QueryTarget)target, (GetQueryParam)pname, (Int32*)@params); + Delegates.glGetQueryivEXT((OpenTK.Graphics.ES20.QueryTarget)target, (OpenTK.Graphics.ES20.GetQueryParam)pname, (Int32*)@params); #if DEBUG } #endif @@ -24356,7 +24356,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "EXT_disjoint_timer_query", Version = "", EntryPoint = "glGetQueryObjecti64vEXT")] public static - void GetQueryObject(Int32 id, GetQueryObjectParam pname, [OutAttribute] Int64[] @params) + void GetQueryObject(Int32 id, OpenTK.Graphics.ES20.GetQueryObjectParam pname, [OutAttribute] Int64[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -24366,7 +24366,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int64* @params_ptr = @params) { - Delegates.glGetQueryObjecti64vEXT((UInt32)id, (GetQueryObjectParam)pname, (Int64*)@params_ptr); + Delegates.glGetQueryObjecti64vEXT((UInt32)id, (OpenTK.Graphics.ES20.GetQueryObjectParam)pname, (Int64*)@params_ptr); } } #if DEBUG @@ -24395,7 +24395,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "EXT_disjoint_timer_query", Version = "", EntryPoint = "glGetQueryObjecti64vEXT")] public static - void GetQueryObject(Int32 id, GetQueryObjectParam pname, [OutAttribute] out Int64 @params) + void GetQueryObject(Int32 id, OpenTK.Graphics.ES20.GetQueryObjectParam pname, [OutAttribute] out Int64 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -24405,7 +24405,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int64* @params_ptr = &@params) { - Delegates.glGetQueryObjecti64vEXT((UInt32)id, (GetQueryObjectParam)pname, (Int64*)@params_ptr); + Delegates.glGetQueryObjecti64vEXT((UInt32)id, (OpenTK.Graphics.ES20.GetQueryObjectParam)pname, (Int64*)@params_ptr); @params = *@params_ptr; } } @@ -24436,13 +24436,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "EXT_disjoint_timer_query", Version = "", EntryPoint = "glGetQueryObjecti64vEXT")] public static - unsafe void GetQueryObject(Int32 id, GetQueryObjectParam pname, [OutAttribute] Int64* @params) + unsafe void GetQueryObject(Int32 id, OpenTK.Graphics.ES20.GetQueryObjectParam pname, [OutAttribute] Int64* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetQueryObjecti64vEXT((UInt32)id, (GetQueryObjectParam)pname, (Int64*)@params); + Delegates.glGetQueryObjecti64vEXT((UInt32)id, (OpenTK.Graphics.ES20.GetQueryObjectParam)pname, (Int64*)@params); #if DEBUG } #endif @@ -24470,7 +24470,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "EXT_disjoint_timer_query", Version = "", EntryPoint = "glGetQueryObjecti64vEXT")] public static - void GetQueryObject(UInt32 id, GetQueryObjectParam pname, [OutAttribute] Int64[] @params) + void GetQueryObject(UInt32 id, OpenTK.Graphics.ES20.GetQueryObjectParam pname, [OutAttribute] Int64[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -24480,7 +24480,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int64* @params_ptr = @params) { - Delegates.glGetQueryObjecti64vEXT((UInt32)id, (GetQueryObjectParam)pname, (Int64*)@params_ptr); + Delegates.glGetQueryObjecti64vEXT((UInt32)id, (OpenTK.Graphics.ES20.GetQueryObjectParam)pname, (Int64*)@params_ptr); } } #if DEBUG @@ -24510,7 +24510,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "EXT_disjoint_timer_query", Version = "", EntryPoint = "glGetQueryObjecti64vEXT")] public static - void GetQueryObject(UInt32 id, GetQueryObjectParam pname, [OutAttribute] out Int64 @params) + void GetQueryObject(UInt32 id, OpenTK.Graphics.ES20.GetQueryObjectParam pname, [OutAttribute] out Int64 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -24520,7 +24520,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int64* @params_ptr = &@params) { - Delegates.glGetQueryObjecti64vEXT((UInt32)id, (GetQueryObjectParam)pname, (Int64*)@params_ptr); + Delegates.glGetQueryObjecti64vEXT((UInt32)id, (OpenTK.Graphics.ES20.GetQueryObjectParam)pname, (Int64*)@params_ptr); @params = *@params_ptr; } } @@ -24551,13 +24551,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "EXT_disjoint_timer_query", Version = "", EntryPoint = "glGetQueryObjecti64vEXT")] public static - unsafe void GetQueryObject(UInt32 id, GetQueryObjectParam pname, [OutAttribute] Int64* @params) + unsafe void GetQueryObject(UInt32 id, OpenTK.Graphics.ES20.GetQueryObjectParam pname, [OutAttribute] Int64* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetQueryObjecti64vEXT((UInt32)id, (GetQueryObjectParam)pname, (Int64*)@params); + Delegates.glGetQueryObjecti64vEXT((UInt32)id, (OpenTK.Graphics.ES20.GetQueryObjectParam)pname, (Int64*)@params); #if DEBUG } #endif @@ -24584,7 +24584,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "EXT_disjoint_timer_query", Version = "", EntryPoint = "glGetQueryObjectivEXT")] public static - void GetQueryObject(Int32 id, GetQueryObjectParam pname, [OutAttribute] Int32[] @params) + void GetQueryObject(Int32 id, OpenTK.Graphics.ES20.GetQueryObjectParam pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -24594,7 +24594,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetQueryObjectivEXT((UInt32)id, (GetQueryObjectParam)pname, (Int32*)@params_ptr); + Delegates.glGetQueryObjectivEXT((UInt32)id, (OpenTK.Graphics.ES20.GetQueryObjectParam)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -24623,7 +24623,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "EXT_disjoint_timer_query", Version = "", EntryPoint = "glGetQueryObjectivEXT")] public static - void GetQueryObject(Int32 id, GetQueryObjectParam pname, [OutAttribute] out Int32 @params) + void GetQueryObject(Int32 id, OpenTK.Graphics.ES20.GetQueryObjectParam pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -24633,7 +24633,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetQueryObjectivEXT((UInt32)id, (GetQueryObjectParam)pname, (Int32*)@params_ptr); + Delegates.glGetQueryObjectivEXT((UInt32)id, (OpenTK.Graphics.ES20.GetQueryObjectParam)pname, (Int32*)@params_ptr); @params = *@params_ptr; } } @@ -24664,13 +24664,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "EXT_disjoint_timer_query", Version = "", EntryPoint = "glGetQueryObjectivEXT")] public static - unsafe void GetQueryObject(Int32 id, GetQueryObjectParam pname, [OutAttribute] Int32* @params) + unsafe void GetQueryObject(Int32 id, OpenTK.Graphics.ES20.GetQueryObjectParam pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetQueryObjectivEXT((UInt32)id, (GetQueryObjectParam)pname, (Int32*)@params); + Delegates.glGetQueryObjectivEXT((UInt32)id, (OpenTK.Graphics.ES20.GetQueryObjectParam)pname, (Int32*)@params); #if DEBUG } #endif @@ -24698,7 +24698,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "EXT_disjoint_timer_query", Version = "", EntryPoint = "glGetQueryObjectivEXT")] public static - void GetQueryObject(UInt32 id, GetQueryObjectParam pname, [OutAttribute] Int32[] @params) + void GetQueryObject(UInt32 id, OpenTK.Graphics.ES20.GetQueryObjectParam pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -24708,7 +24708,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetQueryObjectivEXT((UInt32)id, (GetQueryObjectParam)pname, (Int32*)@params_ptr); + Delegates.glGetQueryObjectivEXT((UInt32)id, (OpenTK.Graphics.ES20.GetQueryObjectParam)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -24738,7 +24738,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "EXT_disjoint_timer_query", Version = "", EntryPoint = "glGetQueryObjectivEXT")] public static - void GetQueryObject(UInt32 id, GetQueryObjectParam pname, [OutAttribute] out Int32 @params) + void GetQueryObject(UInt32 id, OpenTK.Graphics.ES20.GetQueryObjectParam pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -24748,7 +24748,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetQueryObjectivEXT((UInt32)id, (GetQueryObjectParam)pname, (Int32*)@params_ptr); + Delegates.glGetQueryObjectivEXT((UInt32)id, (OpenTK.Graphics.ES20.GetQueryObjectParam)pname, (Int32*)@params_ptr); @params = *@params_ptr; } } @@ -24779,13 +24779,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "EXT_disjoint_timer_query", Version = "", EntryPoint = "glGetQueryObjectivEXT")] public static - unsafe void GetQueryObject(UInt32 id, GetQueryObjectParam pname, [OutAttribute] Int32* @params) + unsafe void GetQueryObject(UInt32 id, OpenTK.Graphics.ES20.GetQueryObjectParam pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetQueryObjectivEXT((UInt32)id, (GetQueryObjectParam)pname, (Int32*)@params); + Delegates.glGetQueryObjectivEXT((UInt32)id, (OpenTK.Graphics.ES20.GetQueryObjectParam)pname, (Int32*)@params); #if DEBUG } #endif @@ -24813,7 +24813,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "EXT_disjoint_timer_query", Version = "", EntryPoint = "glGetQueryObjectui64vEXT")] public static - void GetQueryObject(UInt32 id, GetQueryObjectParam pname, [OutAttribute] UInt64[] @params) + void GetQueryObject(UInt32 id, OpenTK.Graphics.ES20.GetQueryObjectParam pname, [OutAttribute] UInt64[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -24823,7 +24823,7 @@ namespace OpenTK.Graphics.ES20 { fixed (UInt64* @params_ptr = @params) { - Delegates.glGetQueryObjectui64vEXT((UInt32)id, (GetQueryObjectParam)pname, (UInt64*)@params_ptr); + Delegates.glGetQueryObjectui64vEXT((UInt32)id, (OpenTK.Graphics.ES20.GetQueryObjectParam)pname, (UInt64*)@params_ptr); } } #if DEBUG @@ -24853,7 +24853,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "EXT_disjoint_timer_query", Version = "", EntryPoint = "glGetQueryObjectui64vEXT")] public static - void GetQueryObject(UInt32 id, GetQueryObjectParam pname, [OutAttribute] out UInt64 @params) + void GetQueryObject(UInt32 id, OpenTK.Graphics.ES20.GetQueryObjectParam pname, [OutAttribute] out UInt64 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -24863,7 +24863,7 @@ namespace OpenTK.Graphics.ES20 { fixed (UInt64* @params_ptr = &@params) { - Delegates.glGetQueryObjectui64vEXT((UInt32)id, (GetQueryObjectParam)pname, (UInt64*)@params_ptr); + Delegates.glGetQueryObjectui64vEXT((UInt32)id, (OpenTK.Graphics.ES20.GetQueryObjectParam)pname, (UInt64*)@params_ptr); @params = *@params_ptr; } } @@ -24894,13 +24894,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "EXT_disjoint_timer_query", Version = "", EntryPoint = "glGetQueryObjectui64vEXT")] public static - unsafe void GetQueryObject(UInt32 id, GetQueryObjectParam pname, [OutAttribute] UInt64* @params) + unsafe void GetQueryObject(UInt32 id, OpenTK.Graphics.ES20.GetQueryObjectParam pname, [OutAttribute] UInt64* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetQueryObjectui64vEXT((UInt32)id, (GetQueryObjectParam)pname, (UInt64*)@params); + Delegates.glGetQueryObjectui64vEXT((UInt32)id, (OpenTK.Graphics.ES20.GetQueryObjectParam)pname, (UInt64*)@params); #if DEBUG } #endif @@ -24928,7 +24928,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "EXT_disjoint_timer_query|EXT_occlusion_query_boolean", Version = "", EntryPoint = "glGetQueryObjectuivEXT")] public static - void GetQueryObject(UInt32 id, GetQueryObjectParam pname, [OutAttribute] UInt32[] @params) + void GetQueryObject(UInt32 id, OpenTK.Graphics.ES20.GetQueryObjectParam pname, [OutAttribute] UInt32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -24938,7 +24938,7 @@ namespace OpenTK.Graphics.ES20 { fixed (UInt32* @params_ptr = @params) { - Delegates.glGetQueryObjectuivEXT((UInt32)id, (GetQueryObjectParam)pname, (UInt32*)@params_ptr); + Delegates.glGetQueryObjectuivEXT((UInt32)id, (OpenTK.Graphics.ES20.GetQueryObjectParam)pname, (UInt32*)@params_ptr); } } #if DEBUG @@ -24968,7 +24968,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "EXT_disjoint_timer_query|EXT_occlusion_query_boolean", Version = "", EntryPoint = "glGetQueryObjectuivEXT")] public static - void GetQueryObject(UInt32 id, GetQueryObjectParam pname, [OutAttribute] out UInt32 @params) + void GetQueryObject(UInt32 id, OpenTK.Graphics.ES20.GetQueryObjectParam pname, [OutAttribute] out UInt32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -24978,7 +24978,7 @@ namespace OpenTK.Graphics.ES20 { fixed (UInt32* @params_ptr = &@params) { - Delegates.glGetQueryObjectuivEXT((UInt32)id, (GetQueryObjectParam)pname, (UInt32*)@params_ptr); + Delegates.glGetQueryObjectuivEXT((UInt32)id, (OpenTK.Graphics.ES20.GetQueryObjectParam)pname, (UInt32*)@params_ptr); @params = *@params_ptr; } } @@ -25009,13 +25009,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "EXT_disjoint_timer_query|EXT_occlusion_query_boolean", Version = "", EntryPoint = "glGetQueryObjectuivEXT")] public static - unsafe void GetQueryObject(UInt32 id, GetQueryObjectParam pname, [OutAttribute] UInt32* @params) + unsafe void GetQueryObject(UInt32 id, OpenTK.Graphics.ES20.GetQueryObjectParam pname, [OutAttribute] UInt32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetQueryObjectuivEXT((UInt32)id, (GetQueryObjectParam)pname, (UInt32*)@params); + Delegates.glGetQueryObjectuivEXT((UInt32)id, (OpenTK.Graphics.ES20.GetQueryObjectParam)pname, (UInt32*)@params); #if DEBUG } #endif @@ -26224,13 +26224,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "EXT_separate_shader_objects", Version = "", EntryPoint = "glProgramParameteriEXT")] public static - void ProgramParameter(Int32 program, OpenTK.Graphics.ES20.All pname, Int32 value) + void ProgramParameter(Int32 program, OpenTK.Graphics.ES20.ProgramParameterName pname, Int32 value) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glProgramParameteriEXT((UInt32)program, (OpenTK.Graphics.ES20.All)pname, (Int32)value); + Delegates.glProgramParameteriEXT((UInt32)program, (OpenTK.Graphics.ES20.ProgramParameterName)pname, (Int32)value); #if DEBUG } #endif @@ -26258,13 +26258,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "EXT_separate_shader_objects", Version = "", EntryPoint = "glProgramParameteriEXT")] public static - void ProgramParameter(UInt32 program, OpenTK.Graphics.ES20.All pname, Int32 value) + void ProgramParameter(UInt32 program, OpenTK.Graphics.ES20.ProgramParameterName pname, Int32 value) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glProgramParameteriEXT((UInt32)program, (OpenTK.Graphics.ES20.All)pname, (Int32)value); + Delegates.glProgramParameteriEXT((UInt32)program, (OpenTK.Graphics.ES20.ProgramParameterName)pname, (Int32)value); #if DEBUG } #endif @@ -34920,13 +34920,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "NV_framebuffer_blit", Version = "", EntryPoint = "glBlitFramebufferNV")] public static - void BlitFramebuffer(Int32 srcX0, Int32 srcY0, Int32 srcX1, Int32 srcY1, Int32 dstX0, Int32 dstY0, Int32 dstX1, Int32 dstY1, OpenTK.Graphics.ES20.ClearBufferMask mask, BlitFramebufferFilter filter) + void BlitFramebuffer(Int32 srcX0, Int32 srcY0, Int32 srcX1, Int32 srcY1, Int32 dstX0, Int32 dstY0, Int32 dstX1, Int32 dstY1, OpenTK.Graphics.ES20.ClearBufferMask mask, OpenTK.Graphics.ES20.BlitFramebufferFilter filter) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBlitFramebufferNV((Int32)srcX0, (Int32)srcY0, (Int32)srcX1, (Int32)srcY1, (Int32)dstX0, (Int32)dstY0, (Int32)dstX1, (Int32)dstY1, (OpenTK.Graphics.ES20.ClearBufferMask)mask, (BlitFramebufferFilter)filter); + Delegates.glBlitFramebufferNV((Int32)srcX0, (Int32)srcY0, (Int32)srcX1, (Int32)srcY1, (Int32)dstX0, (Int32)dstY0, (Int32)dstX1, (Int32)dstY1, (OpenTK.Graphics.ES20.ClearBufferMask)mask, (OpenTK.Graphics.ES20.BlitFramebufferFilter)filter); #if DEBUG } #endif @@ -37641,13 +37641,13 @@ namespace OpenTK.Graphics.ES20 /// [requires: OES_mapbuffer] [AutoGenerated(Category = "OES_mapbuffer", Version = "", EntryPoint = "glGetBufferPointervOES")] public static - void GetBufferPointer(OpenTK.Graphics.ES20.BufferTarget target, BufferPointer pname, [OutAttribute] IntPtr @params) + void GetBufferPointer(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.BufferPointer pname, [OutAttribute] IntPtr @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetBufferPointervOES((OpenTK.Graphics.ES20.BufferTarget)target, (BufferPointer)pname, (IntPtr)@params); + Delegates.glGetBufferPointervOES((OpenTK.Graphics.ES20.BufferTarget)target, (OpenTK.Graphics.ES20.BufferPointer)pname, (IntPtr)@params); #if DEBUG } #endif @@ -37656,7 +37656,7 @@ namespace OpenTK.Graphics.ES20 /// [requires: OES_mapbuffer] [AutoGenerated(Category = "OES_mapbuffer", Version = "", EntryPoint = "glGetBufferPointervOES")] public static - void GetBufferPointer(OpenTK.Graphics.ES20.BufferTarget target, BufferPointer pname, [InAttribute, OutAttribute] T2[] @params) + void GetBufferPointer(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.BufferPointer pname, [InAttribute, OutAttribute] T2[] @params) where T2 : struct { #if DEBUG @@ -37666,7 +37666,7 @@ namespace OpenTK.Graphics.ES20 GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); try { - Delegates.glGetBufferPointervOES((OpenTK.Graphics.ES20.BufferTarget)target, (BufferPointer)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); + Delegates.glGetBufferPointervOES((OpenTK.Graphics.ES20.BufferTarget)target, (OpenTK.Graphics.ES20.BufferPointer)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } finally { @@ -37680,7 +37680,7 @@ namespace OpenTK.Graphics.ES20 /// [requires: OES_mapbuffer] [AutoGenerated(Category = "OES_mapbuffer", Version = "", EntryPoint = "glGetBufferPointervOES")] public static - void GetBufferPointer(OpenTK.Graphics.ES20.BufferTarget target, BufferPointer pname, [InAttribute, OutAttribute] T2[,] @params) + void GetBufferPointer(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.BufferPointer pname, [InAttribute, OutAttribute] T2[,] @params) where T2 : struct { #if DEBUG @@ -37690,7 +37690,7 @@ namespace OpenTK.Graphics.ES20 GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); try { - Delegates.glGetBufferPointervOES((OpenTK.Graphics.ES20.BufferTarget)target, (BufferPointer)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); + Delegates.glGetBufferPointervOES((OpenTK.Graphics.ES20.BufferTarget)target, (OpenTK.Graphics.ES20.BufferPointer)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } finally { @@ -37704,7 +37704,7 @@ namespace OpenTK.Graphics.ES20 /// [requires: OES_mapbuffer] [AutoGenerated(Category = "OES_mapbuffer", Version = "", EntryPoint = "glGetBufferPointervOES")] public static - void GetBufferPointer(OpenTK.Graphics.ES20.BufferTarget target, BufferPointer pname, [InAttribute, OutAttribute] T2[,,] @params) + void GetBufferPointer(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.BufferPointer pname, [InAttribute, OutAttribute] T2[,,] @params) where T2 : struct { #if DEBUG @@ -37714,7 +37714,7 @@ namespace OpenTK.Graphics.ES20 GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); try { - Delegates.glGetBufferPointervOES((OpenTK.Graphics.ES20.BufferTarget)target, (BufferPointer)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); + Delegates.glGetBufferPointervOES((OpenTK.Graphics.ES20.BufferTarget)target, (OpenTK.Graphics.ES20.BufferPointer)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } finally { @@ -37728,7 +37728,7 @@ namespace OpenTK.Graphics.ES20 /// [requires: OES_mapbuffer] [AutoGenerated(Category = "OES_mapbuffer", Version = "", EntryPoint = "glGetBufferPointervOES")] public static - void GetBufferPointer(OpenTK.Graphics.ES20.BufferTarget target, BufferPointer pname, [InAttribute, OutAttribute] ref T2 @params) + void GetBufferPointer(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.BufferPointer pname, [InAttribute, OutAttribute] ref T2 @params) where T2 : struct { #if DEBUG @@ -37738,7 +37738,7 @@ namespace OpenTK.Graphics.ES20 GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); try { - Delegates.glGetBufferPointervOES((OpenTK.Graphics.ES20.BufferTarget)target, (BufferPointer)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); + Delegates.glGetBufferPointervOES((OpenTK.Graphics.ES20.BufferTarget)target, (OpenTK.Graphics.ES20.BufferPointer)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); @params = (T2)@params_ptr.Target; } finally diff --git a/Source/OpenTK/Graphics/ES20/ES20Core.cs b/Source/OpenTK/Graphics/ES20/ES20Core.cs index ce6ab5e0..700912e6 100644 --- a/Source/OpenTK/Graphics/ES20/ES20Core.cs +++ b/Source/OpenTK/Graphics/ES20/ES20Core.cs @@ -59,7 +59,7 @@ namespace OpenTK.Graphics.ES20 internal extern static void BeginPerfMonitorAMD(UInt32 monitor); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBeginQueryEXT", ExactSpelling = true)] - internal extern static void BeginQueryEXT(QueryTarget target, UInt32 id); + internal extern static void BeginQueryEXT(OpenTK.Graphics.ES20.QueryTarget target, UInt32 id); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBindAttribLocation", ExactSpelling = true)] internal extern static void BindAttribLocation(UInt32 program, UInt32 index, String name); @@ -107,10 +107,10 @@ namespace OpenTK.Graphics.ES20 internal extern static void BlendParameteriNV(OpenTK.Graphics.ES20.All pname, Int32 value); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlitFramebufferANGLE", ExactSpelling = true)] - internal extern static void BlitFramebufferANGLE(Int32 srcX0, Int32 srcY0, Int32 srcX1, Int32 srcY1, Int32 dstX0, Int32 dstY0, Int32 dstX1, Int32 dstY1, OpenTK.Graphics.ES20.ClearBufferMask mask, BlitFramebufferFilter filter); + internal extern static void BlitFramebufferANGLE(Int32 srcX0, Int32 srcY0, Int32 srcX1, Int32 srcY1, Int32 dstX0, Int32 dstY0, Int32 dstX1, Int32 dstY1, OpenTK.Graphics.ES20.ClearBufferMask mask, OpenTK.Graphics.ES20.BlitFramebufferFilter filter); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlitFramebufferNV", ExactSpelling = true)] - internal extern static void BlitFramebufferNV(Int32 srcX0, Int32 srcY0, Int32 srcX1, Int32 srcY1, Int32 dstX0, Int32 dstY0, Int32 dstX1, Int32 dstY1, OpenTK.Graphics.ES20.ClearBufferMask mask, BlitFramebufferFilter filter); + internal extern static void BlitFramebufferNV(Int32 srcX0, Int32 srcY0, Int32 srcX1, Int32 srcY1, Int32 dstX0, Int32 dstY0, Int32 dstX1, Int32 dstY1, OpenTK.Graphics.ES20.ClearBufferMask mask, OpenTK.Graphics.ES20.BlitFramebufferFilter filter); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBufferData", ExactSpelling = true)] internal extern static void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, IntPtr data, OpenTK.Graphics.ES20.BufferUsage usage); @@ -326,7 +326,7 @@ namespace OpenTK.Graphics.ES20 internal extern static void EndPerfMonitorAMD(UInt32 monitor); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEndQueryEXT", ExactSpelling = true)] - internal extern static void EndQueryEXT(QueryTarget target); + internal extern static void EndQueryEXT(OpenTK.Graphics.ES20.QueryTarget target); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEndTilingQCOM", ExactSpelling = true)] internal extern static void EndTilingQCOM(UInt32 preserveMask); @@ -449,7 +449,7 @@ namespace OpenTK.Graphics.ES20 internal extern static unsafe void GetBufferParameteriv(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.BufferParameterName pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetBufferPointervOES", ExactSpelling = true)] - internal extern static void GetBufferPointervOES(OpenTK.Graphics.ES20.BufferTarget target, BufferPointer pname, [OutAttribute] IntPtr @params); + internal extern static void GetBufferPointervOES(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.BufferPointer pname, [OutAttribute] IntPtr @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetDebugMessageLog", ExactSpelling = true)] internal extern static unsafe Int32 GetDebugMessageLog(UInt32 count, Int32 bufSize, [OutAttribute] OpenTK.Graphics.ES20.All* sources, [OutAttribute] OpenTK.Graphics.ES20.All* types, [OutAttribute] UInt32* ids, [OutAttribute] OpenTK.Graphics.ES20.All* severities, [OutAttribute] Int32* lengths, [OutAttribute] StringBuilder messageLog); @@ -548,19 +548,19 @@ namespace OpenTK.Graphics.ES20 internal extern static unsafe void GetProgramPipelineivEXT(UInt32 pipeline, OpenTK.Graphics.ES20.All pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetQueryivEXT", ExactSpelling = true)] - internal extern static unsafe void GetQueryivEXT(QueryTarget target, GetQueryParam pname, [OutAttribute] Int32* @params); + internal extern static unsafe void GetQueryivEXT(OpenTK.Graphics.ES20.QueryTarget target, OpenTK.Graphics.ES20.GetQueryParam pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetQueryObjecti64vEXT", ExactSpelling = true)] - internal extern static unsafe void GetQueryObjecti64vEXT(UInt32 id, GetQueryObjectParam pname, [OutAttribute] Int64* @params); + internal extern static unsafe void GetQueryObjecti64vEXT(UInt32 id, OpenTK.Graphics.ES20.GetQueryObjectParam pname, [OutAttribute] Int64* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetQueryObjectivEXT", ExactSpelling = true)] - internal extern static unsafe void GetQueryObjectivEXT(UInt32 id, GetQueryObjectParam pname, [OutAttribute] Int32* @params); + internal extern static unsafe void GetQueryObjectivEXT(UInt32 id, OpenTK.Graphics.ES20.GetQueryObjectParam pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetQueryObjectui64vEXT", ExactSpelling = true)] - internal extern static unsafe void GetQueryObjectui64vEXT(UInt32 id, GetQueryObjectParam pname, [OutAttribute] UInt64* @params); + internal extern static unsafe void GetQueryObjectui64vEXT(UInt32 id, OpenTK.Graphics.ES20.GetQueryObjectParam pname, [OutAttribute] UInt64* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetQueryObjectuivEXT", ExactSpelling = true)] - internal extern static unsafe void GetQueryObjectuivEXT(UInt32 id, GetQueryObjectParam pname, [OutAttribute] UInt32* @params); + internal extern static unsafe void GetQueryObjectuivEXT(UInt32 id, OpenTK.Graphics.ES20.GetQueryObjectParam pname, [OutAttribute] UInt32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetRenderbufferParameteriv", ExactSpelling = true)] internal extern static unsafe void GetRenderbufferParameteriv(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.RenderbufferParameterName pname, [OutAttribute] Int32* @params); @@ -704,7 +704,7 @@ namespace OpenTK.Graphics.ES20 internal extern static void ProgramBinaryOES(UInt32 program, OpenTK.Graphics.ES20.All binaryFormat, IntPtr binary, Int32 length); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glProgramParameteriEXT", ExactSpelling = true)] - internal extern static void ProgramParameteriEXT(UInt32 program, OpenTK.Graphics.ES20.All pname, Int32 value); + internal extern static void ProgramParameteriEXT(UInt32 program, OpenTK.Graphics.ES20.ProgramParameterName pname, Int32 value); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glProgramUniform1fEXT", ExactSpelling = true)] internal extern static void ProgramUniform1fEXT(UInt32 program, Int32 location, Single v0); diff --git a/Source/OpenTK/Graphics/ES20/ES20Delegates.cs b/Source/OpenTK/Graphics/ES20/ES20Delegates.cs index ce4b8ed9..1c3dbaf0 100644 --- a/Source/OpenTK/Graphics/ES20/ES20Delegates.cs +++ b/Source/OpenTK/Graphics/ES20/ES20Delegates.cs @@ -57,7 +57,7 @@ namespace OpenTK.Graphics.ES20 internal delegate void BeginPerfMonitorAMD(UInt32 monitor); internal static BeginPerfMonitorAMD glBeginPerfMonitorAMD; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BeginQueryEXT(QueryTarget target, UInt32 id); + internal delegate void BeginQueryEXT(OpenTK.Graphics.ES20.QueryTarget target, UInt32 id); internal static BeginQueryEXT glBeginQueryEXT; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void BindAttribLocation(UInt32 program, UInt32 index, String name); @@ -105,10 +105,10 @@ namespace OpenTK.Graphics.ES20 internal delegate void BlendParameteriNV(OpenTK.Graphics.ES20.All pname, Int32 value); internal static BlendParameteriNV glBlendParameteriNV; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BlitFramebufferANGLE(Int32 srcX0, Int32 srcY0, Int32 srcX1, Int32 srcY1, Int32 dstX0, Int32 dstY0, Int32 dstX1, Int32 dstY1, OpenTK.Graphics.ES20.ClearBufferMask mask, BlitFramebufferFilter filter); + internal delegate void BlitFramebufferANGLE(Int32 srcX0, Int32 srcY0, Int32 srcX1, Int32 srcY1, Int32 dstX0, Int32 dstY0, Int32 dstX1, Int32 dstY1, OpenTK.Graphics.ES20.ClearBufferMask mask, OpenTK.Graphics.ES20.BlitFramebufferFilter filter); internal static BlitFramebufferANGLE glBlitFramebufferANGLE; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BlitFramebufferNV(Int32 srcX0, Int32 srcY0, Int32 srcX1, Int32 srcY1, Int32 dstX0, Int32 dstY0, Int32 dstX1, Int32 dstY1, OpenTK.Graphics.ES20.ClearBufferMask mask, BlitFramebufferFilter filter); + internal delegate void BlitFramebufferNV(Int32 srcX0, Int32 srcY0, Int32 srcX1, Int32 srcY1, Int32 dstX0, Int32 dstY0, Int32 dstX1, Int32 dstY1, OpenTK.Graphics.ES20.ClearBufferMask mask, OpenTK.Graphics.ES20.BlitFramebufferFilter filter); internal static BlitFramebufferNV glBlitFramebufferNV; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, IntPtr data, OpenTK.Graphics.ES20.BufferUsage usage); @@ -324,7 +324,7 @@ namespace OpenTK.Graphics.ES20 internal delegate void EndPerfMonitorAMD(UInt32 monitor); internal static EndPerfMonitorAMD glEndPerfMonitorAMD; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void EndQueryEXT(QueryTarget target); + internal delegate void EndQueryEXT(OpenTK.Graphics.ES20.QueryTarget target); internal static EndQueryEXT glEndQueryEXT; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void EndTilingQCOM(UInt32 preserveMask); @@ -447,7 +447,7 @@ namespace OpenTK.Graphics.ES20 internal unsafe delegate void GetBufferParameteriv(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.BufferParameterName pname, [OutAttribute] Int32* @params); internal unsafe static GetBufferParameteriv glGetBufferParameteriv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void GetBufferPointervOES(OpenTK.Graphics.ES20.BufferTarget target, BufferPointer pname, [OutAttribute] IntPtr @params); + internal delegate void GetBufferPointervOES(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.BufferPointer pname, [OutAttribute] IntPtr @params); internal static GetBufferPointervOES glGetBufferPointervOES; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Int32 GetDebugMessageLog(UInt32 count, Int32 bufSize, [OutAttribute] OpenTK.Graphics.ES20.All* sources, [OutAttribute] OpenTK.Graphics.ES20.All* types, [OutAttribute] UInt32* ids, [OutAttribute] OpenTK.Graphics.ES20.All* severities, [OutAttribute] Int32* lengths, [OutAttribute] StringBuilder messageLog); @@ -546,19 +546,19 @@ namespace OpenTK.Graphics.ES20 internal unsafe delegate void GetProgramPipelineivEXT(UInt32 pipeline, OpenTK.Graphics.ES20.All pname, [OutAttribute] Int32* @params); internal unsafe static GetProgramPipelineivEXT glGetProgramPipelineivEXT; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetQueryivEXT(QueryTarget target, GetQueryParam pname, [OutAttribute] Int32* @params); + internal unsafe delegate void GetQueryivEXT(OpenTK.Graphics.ES20.QueryTarget target, OpenTK.Graphics.ES20.GetQueryParam pname, [OutAttribute] Int32* @params); internal unsafe static GetQueryivEXT glGetQueryivEXT; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetQueryObjecti64vEXT(UInt32 id, GetQueryObjectParam pname, [OutAttribute] Int64* @params); + internal unsafe delegate void GetQueryObjecti64vEXT(UInt32 id, OpenTK.Graphics.ES20.GetQueryObjectParam pname, [OutAttribute] Int64* @params); internal unsafe static GetQueryObjecti64vEXT glGetQueryObjecti64vEXT; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetQueryObjectivEXT(UInt32 id, GetQueryObjectParam pname, [OutAttribute] Int32* @params); + internal unsafe delegate void GetQueryObjectivEXT(UInt32 id, OpenTK.Graphics.ES20.GetQueryObjectParam pname, [OutAttribute] Int32* @params); internal unsafe static GetQueryObjectivEXT glGetQueryObjectivEXT; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetQueryObjectui64vEXT(UInt32 id, GetQueryObjectParam pname, [OutAttribute] UInt64* @params); + internal unsafe delegate void GetQueryObjectui64vEXT(UInt32 id, OpenTK.Graphics.ES20.GetQueryObjectParam pname, [OutAttribute] UInt64* @params); internal unsafe static GetQueryObjectui64vEXT glGetQueryObjectui64vEXT; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetQueryObjectuivEXT(UInt32 id, GetQueryObjectParam pname, [OutAttribute] UInt32* @params); + internal unsafe delegate void GetQueryObjectuivEXT(UInt32 id, OpenTK.Graphics.ES20.GetQueryObjectParam pname, [OutAttribute] UInt32* @params); internal unsafe static GetQueryObjectuivEXT glGetQueryObjectuivEXT; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetRenderbufferParameteriv(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.RenderbufferParameterName pname, [OutAttribute] Int32* @params); @@ -702,7 +702,7 @@ namespace OpenTK.Graphics.ES20 internal delegate void ProgramBinaryOES(UInt32 program, OpenTK.Graphics.ES20.All binaryFormat, IntPtr binary, Int32 length); internal static ProgramBinaryOES glProgramBinaryOES; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ProgramParameteriEXT(UInt32 program, OpenTK.Graphics.ES20.All pname, Int32 value); + internal delegate void ProgramParameteriEXT(UInt32 program, OpenTK.Graphics.ES20.ProgramParameterName pname, Int32 value); internal static ProgramParameteriEXT glProgramParameteriEXT; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void ProgramUniform1fEXT(UInt32 program, Int32 location, Single v0); diff --git a/Source/OpenTK/Graphics/ES20/ES20Enums.cs b/Source/OpenTK/Graphics/ES20/ES20Enums.cs index 9db26856..278a9376 100644 --- a/Source/OpenTK/Graphics/ES20/ES20Enums.cs +++ b/Source/OpenTK/Graphics/ES20/ES20Enums.cs @@ -167,7 +167,7 @@ namespace OpenTK.Graphics.ES20 } /// - /// Used in GL.Amd.GetPerfMonitorCounterData, GL.Amd.GetPerfMonitorCounterInfo and 70 other functions + /// Used in GL.Amd.GetPerfMonitorCounterData, GL.Amd.GetPerfMonitorCounterInfo and 69 other functions /// public enum All : int { @@ -8140,6 +8140,21 @@ namespace OpenTK.Graphics.ES20 One = ((int)1) , } + /// + /// Used in GL.Angle.BlitFramebuffer, GL.NV.BlitFramebuffer + /// + public enum BlitFramebufferFilter : int + { + /// + /// Original was GL_NEAREST = 0X2600 + /// + Nearest = ((int)0X2600) , + /// + /// Original was GL_LINEAR = 0X2601 + /// + Linear = ((int)0X2601) , + } + /// /// Not used directly. /// @@ -8170,6 +8185,13 @@ namespace OpenTK.Graphics.ES20 BufferUsage = ((int)0X8765) , } + /// + /// Used in GL.Oes.GetBufferPointer + /// + public enum BufferPointer : int + { + } + /// /// Used in GL.BindBuffer, GL.BufferData and 6 other functions /// @@ -13834,6 +13856,20 @@ namespace OpenTK.Graphics.ES20 InstrumentBufferPointerSgix = ((int)0x8180) , } + /// + /// Used in GL.Ext.GetQueryObject + /// + public enum GetQueryObjectParam : int + { + } + + /// + /// Used in GL.Ext.GetQuery + /// + public enum GetQueryParam : int + { + } + /// /// Used in GL.GetTexParameter /// @@ -18362,6 +18398,53 @@ namespace OpenTK.Graphics.ES20 /// Used in GL.GetProgram /// public enum ProgramParameter : int + { + /// + /// Original was GL_PROGRAM_BINARY_RETRIEVABLE_HINT = 0x8257 + /// + ProgramBinaryRetrievableHint = ((int)0x8257) , + /// + /// Original was GL_DELETE_STATUS = 0x8B80 + /// + DeleteStatus = ((int)0x8B80) , + /// + /// Original was GL_LINK_STATUS = 0x8B82 + /// + LinkStatus = ((int)0x8B82) , + /// + /// Original was GL_VALIDATE_STATUS = 0x8B83 + /// + ValidateStatus = ((int)0x8B83) , + /// + /// Original was GL_INFO_LOG_LENGTH = 0x8B84 + /// + InfoLogLength = ((int)0x8B84) , + /// + /// Original was GL_ATTACHED_SHADERS = 0x8B85 + /// + AttachedShaders = ((int)0x8B85) , + /// + /// Original was GL_ACTIVE_UNIFORMS = 0x8B86 + /// + ActiveUniforms = ((int)0x8B86) , + /// + /// Original was GL_ACTIVE_UNIFORM_MAX_LENGTH = 0x8B87 + /// + ActiveUniformMaxLength = ((int)0x8B87) , + /// + /// Original was GL_ACTIVE_ATTRIBUTES = 0x8B89 + /// + ActiveAttributes = ((int)0x8B89) , + /// + /// Original was GL_ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8B8A + /// + ActiveAttributeMaxLength = ((int)0x8B8A) , + } + + /// + /// Used in GL.Ext.ProgramParameter + /// + public enum ProgramParameterName : int { /// /// Original was GL_DeleteStatus = 0X8b80 @@ -18665,6 +18748,13 @@ namespace OpenTK.Graphics.ES20 WriteonlyRenderingQcom = ((int)0x8823) , } + /// + /// Used in GL.Ext.BeginQuery, GL.Ext.EndQuery and 1 other function + /// + public enum QueryTarget : int + { + } + /// /// Not used directly. /// diff --git a/Source/OpenTK/Graphics/ES30/ES30.cs b/Source/OpenTK/Graphics/ES30/ES30.cs index 2a58cd50..7450cd34 100644 --- a/Source/OpenTK/Graphics/ES30/ES30.cs +++ b/Source/OpenTK/Graphics/ES30/ES30.cs @@ -2474,13 +2474,13 @@ namespace OpenTK.Graphics.ES30 /// [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glBeginTransformFeedback")] public static - void BeginTransformFeedback(OpenTK.Graphics.ES30.BeginFeedbackMode primitiveMode) + void BeginTransformFeedback(OpenTK.Graphics.ES30.TransformFeedbackPrimitiveType primitiveMode) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBeginTransformFeedback((OpenTK.Graphics.ES30.BeginFeedbackMode)primitiveMode); + Delegates.glBeginTransformFeedback((OpenTK.Graphics.ES30.TransformFeedbackPrimitiveType)primitiveMode); #if DEBUG } #endif @@ -12629,7 +12629,7 @@ namespace OpenTK.Graphics.ES30 /// [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glGetActiveUniformBlockiv")] public static - void GetActiveUniformBlock(Int32 program, Int32 uniformBlockIndex, OpenTK.Graphics.ES30.All pname, [OutAttribute] Int32[] @params) + void GetActiveUniformBlock(Int32 program, Int32 uniformBlockIndex, OpenTK.Graphics.ES30.ActiveUniformBlockParameter pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -12639,7 +12639,7 @@ namespace OpenTK.Graphics.ES30 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetActiveUniformBlockiv((UInt32)program, (UInt32)uniformBlockIndex, (OpenTK.Graphics.ES30.All)pname, (Int32*)@params_ptr); + Delegates.glGetActiveUniformBlockiv((UInt32)program, (UInt32)uniformBlockIndex, (OpenTK.Graphics.ES30.ActiveUniformBlockParameter)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -12673,7 +12673,7 @@ namespace OpenTK.Graphics.ES30 /// [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glGetActiveUniformBlockiv")] public static - void GetActiveUniformBlock(Int32 program, Int32 uniformBlockIndex, OpenTK.Graphics.ES30.All pname, [OutAttribute] out Int32 @params) + void GetActiveUniformBlock(Int32 program, Int32 uniformBlockIndex, OpenTK.Graphics.ES30.ActiveUniformBlockParameter pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -12683,7 +12683,7 @@ namespace OpenTK.Graphics.ES30 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetActiveUniformBlockiv((UInt32)program, (UInt32)uniformBlockIndex, (OpenTK.Graphics.ES30.All)pname, (Int32*)@params_ptr); + Delegates.glGetActiveUniformBlockiv((UInt32)program, (UInt32)uniformBlockIndex, (OpenTK.Graphics.ES30.ActiveUniformBlockParameter)pname, (Int32*)@params_ptr); @params = *@params_ptr; } } @@ -12719,13 +12719,13 @@ namespace OpenTK.Graphics.ES30 [System.CLSCompliant(false)] [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glGetActiveUniformBlockiv")] public static - unsafe void GetActiveUniformBlock(Int32 program, Int32 uniformBlockIndex, OpenTK.Graphics.ES30.All pname, [OutAttribute] Int32* @params) + unsafe void GetActiveUniformBlock(Int32 program, Int32 uniformBlockIndex, OpenTK.Graphics.ES30.ActiveUniformBlockParameter pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniformBlockiv((UInt32)program, (UInt32)uniformBlockIndex, (OpenTK.Graphics.ES30.All)pname, (Int32*)@params); + Delegates.glGetActiveUniformBlockiv((UInt32)program, (UInt32)uniformBlockIndex, (OpenTK.Graphics.ES30.ActiveUniformBlockParameter)pname, (Int32*)@params); #if DEBUG } #endif @@ -12758,7 +12758,7 @@ namespace OpenTK.Graphics.ES30 [System.CLSCompliant(false)] [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glGetActiveUniformBlockiv")] public static - void GetActiveUniformBlock(UInt32 program, UInt32 uniformBlockIndex, OpenTK.Graphics.ES30.All pname, [OutAttribute] Int32[] @params) + void GetActiveUniformBlock(UInt32 program, UInt32 uniformBlockIndex, OpenTK.Graphics.ES30.ActiveUniformBlockParameter pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -12768,7 +12768,7 @@ namespace OpenTK.Graphics.ES30 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetActiveUniformBlockiv((UInt32)program, (UInt32)uniformBlockIndex, (OpenTK.Graphics.ES30.All)pname, (Int32*)@params_ptr); + Delegates.glGetActiveUniformBlockiv((UInt32)program, (UInt32)uniformBlockIndex, (OpenTK.Graphics.ES30.ActiveUniformBlockParameter)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -12803,7 +12803,7 @@ namespace OpenTK.Graphics.ES30 [System.CLSCompliant(false)] [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glGetActiveUniformBlockiv")] public static - void GetActiveUniformBlock(UInt32 program, UInt32 uniformBlockIndex, OpenTK.Graphics.ES30.All pname, [OutAttribute] out Int32 @params) + void GetActiveUniformBlock(UInt32 program, UInt32 uniformBlockIndex, OpenTK.Graphics.ES30.ActiveUniformBlockParameter pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -12813,7 +12813,7 @@ namespace OpenTK.Graphics.ES30 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetActiveUniformBlockiv((UInt32)program, (UInt32)uniformBlockIndex, (OpenTK.Graphics.ES30.All)pname, (Int32*)@params_ptr); + Delegates.glGetActiveUniformBlockiv((UInt32)program, (UInt32)uniformBlockIndex, (OpenTK.Graphics.ES30.ActiveUniformBlockParameter)pname, (Int32*)@params_ptr); @params = *@params_ptr; } } @@ -12849,13 +12849,13 @@ namespace OpenTK.Graphics.ES30 [System.CLSCompliant(false)] [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glGetActiveUniformBlockiv")] public static - unsafe void GetActiveUniformBlock(UInt32 program, UInt32 uniformBlockIndex, OpenTK.Graphics.ES30.All pname, [OutAttribute] Int32* @params) + unsafe void GetActiveUniformBlock(UInt32 program, UInt32 uniformBlockIndex, OpenTK.Graphics.ES30.ActiveUniformBlockParameter pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniformBlockiv((UInt32)program, (UInt32)uniformBlockIndex, (OpenTK.Graphics.ES30.All)pname, (Int32*)@params); + Delegates.glGetActiveUniformBlockiv((UInt32)program, (UInt32)uniformBlockIndex, (OpenTK.Graphics.ES30.ActiveUniformBlockParameter)pname, (Int32*)@params); #if DEBUG } #endif @@ -13081,7 +13081,7 @@ namespace OpenTK.Graphics.ES30 /// [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glGetActiveUniformsiv")] public static - void GetActiveUniforms(Int32 program, Int32 uniformCount, Int32[] uniformIndices, OpenTK.Graphics.ES30.All pname, [OutAttribute] Int32[] @params) + void GetActiveUniforms(Int32 program, Int32 uniformCount, Int32[] uniformIndices, OpenTK.Graphics.ES30.ActiveUniformParameter pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -13092,7 +13092,7 @@ namespace OpenTK.Graphics.ES30 fixed (Int32* uniformIndices_ptr = uniformIndices) fixed (Int32* @params_ptr = @params) { - Delegates.glGetActiveUniformsiv((UInt32)program, (Int32)uniformCount, (UInt32*)uniformIndices_ptr, (OpenTK.Graphics.ES30.All)pname, (Int32*)@params_ptr); + Delegates.glGetActiveUniformsiv((UInt32)program, (Int32)uniformCount, (UInt32*)uniformIndices_ptr, (OpenTK.Graphics.ES30.ActiveUniformParameter)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -13131,7 +13131,7 @@ namespace OpenTK.Graphics.ES30 /// [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glGetActiveUniformsiv")] public static - void GetActiveUniforms(Int32 program, Int32 uniformCount, ref Int32 uniformIndices, OpenTK.Graphics.ES30.All pname, [OutAttribute] out Int32 @params) + void GetActiveUniforms(Int32 program, Int32 uniformCount, ref Int32 uniformIndices, OpenTK.Graphics.ES30.ActiveUniformParameter pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -13142,7 +13142,7 @@ namespace OpenTK.Graphics.ES30 fixed (Int32* uniformIndices_ptr = &uniformIndices) fixed (Int32* @params_ptr = &@params) { - Delegates.glGetActiveUniformsiv((UInt32)program, (Int32)uniformCount, (UInt32*)uniformIndices_ptr, (OpenTK.Graphics.ES30.All)pname, (Int32*)@params_ptr); + Delegates.glGetActiveUniformsiv((UInt32)program, (Int32)uniformCount, (UInt32*)uniformIndices_ptr, (OpenTK.Graphics.ES30.ActiveUniformParameter)pname, (Int32*)@params_ptr); @params = *@params_ptr; } } @@ -13183,13 +13183,13 @@ namespace OpenTK.Graphics.ES30 [System.CLSCompliant(false)] [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glGetActiveUniformsiv")] public static - unsafe void GetActiveUniforms(Int32 program, Int32 uniformCount, Int32* uniformIndices, OpenTK.Graphics.ES30.All pname, [OutAttribute] Int32* @params) + unsafe void GetActiveUniforms(Int32 program, Int32 uniformCount, Int32* uniformIndices, OpenTK.Graphics.ES30.ActiveUniformParameter pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniformsiv((UInt32)program, (Int32)uniformCount, (UInt32*)uniformIndices, (OpenTK.Graphics.ES30.All)pname, (Int32*)@params); + Delegates.glGetActiveUniformsiv((UInt32)program, (Int32)uniformCount, (UInt32*)uniformIndices, (OpenTK.Graphics.ES30.ActiveUniformParameter)pname, (Int32*)@params); #if DEBUG } #endif @@ -13227,7 +13227,7 @@ namespace OpenTK.Graphics.ES30 [System.CLSCompliant(false)] [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glGetActiveUniformsiv")] public static - void GetActiveUniforms(UInt32 program, Int32 uniformCount, UInt32[] uniformIndices, OpenTK.Graphics.ES30.All pname, [OutAttribute] Int32[] @params) + void GetActiveUniforms(UInt32 program, Int32 uniformCount, UInt32[] uniformIndices, OpenTK.Graphics.ES30.ActiveUniformParameter pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -13238,7 +13238,7 @@ namespace OpenTK.Graphics.ES30 fixed (UInt32* uniformIndices_ptr = uniformIndices) fixed (Int32* @params_ptr = @params) { - Delegates.glGetActiveUniformsiv((UInt32)program, (Int32)uniformCount, (UInt32*)uniformIndices_ptr, (OpenTK.Graphics.ES30.All)pname, (Int32*)@params_ptr); + Delegates.glGetActiveUniformsiv((UInt32)program, (Int32)uniformCount, (UInt32*)uniformIndices_ptr, (OpenTK.Graphics.ES30.ActiveUniformParameter)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -13278,7 +13278,7 @@ namespace OpenTK.Graphics.ES30 [System.CLSCompliant(false)] [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glGetActiveUniformsiv")] public static - void GetActiveUniforms(UInt32 program, Int32 uniformCount, ref UInt32 uniformIndices, OpenTK.Graphics.ES30.All pname, [OutAttribute] out Int32 @params) + void GetActiveUniforms(UInt32 program, Int32 uniformCount, ref UInt32 uniformIndices, OpenTK.Graphics.ES30.ActiveUniformParameter pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -13289,7 +13289,7 @@ namespace OpenTK.Graphics.ES30 fixed (UInt32* uniformIndices_ptr = &uniformIndices) fixed (Int32* @params_ptr = &@params) { - Delegates.glGetActiveUniformsiv((UInt32)program, (Int32)uniformCount, (UInt32*)uniformIndices_ptr, (OpenTK.Graphics.ES30.All)pname, (Int32*)@params_ptr); + Delegates.glGetActiveUniformsiv((UInt32)program, (Int32)uniformCount, (UInt32*)uniformIndices_ptr, (OpenTK.Graphics.ES30.ActiveUniformParameter)pname, (Int32*)@params_ptr); @params = *@params_ptr; } } @@ -13330,13 +13330,13 @@ namespace OpenTK.Graphics.ES30 [System.CLSCompliant(false)] [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glGetActiveUniformsiv")] public static - unsafe void GetActiveUniforms(UInt32 program, Int32 uniformCount, UInt32* uniformIndices, OpenTK.Graphics.ES30.All pname, [OutAttribute] Int32* @params) + unsafe void GetActiveUniforms(UInt32 program, Int32 uniformCount, UInt32* uniformIndices, OpenTK.Graphics.ES30.ActiveUniformParameter pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniformsiv((UInt32)program, (Int32)uniformCount, (UInt32*)uniformIndices, (OpenTK.Graphics.ES30.All)pname, (Int32*)@params); + Delegates.glGetActiveUniformsiv((UInt32)program, (Int32)uniformCount, (UInt32*)uniformIndices, (OpenTK.Graphics.ES30.ActiveUniformParameter)pname, (Int32*)@params); #if DEBUG } #endif @@ -20144,7 +20144,7 @@ namespace OpenTK.Graphics.ES30 /// [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glGetTransformFeedbackVarying")] public static - void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.ES30.All type, [OutAttribute] StringBuilder name) + void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.ES30.TransformFeedbackType type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -20154,9 +20154,9 @@ namespace OpenTK.Graphics.ES30 { fixed (Int32* length_ptr = &length) fixed (Int32* size_ptr = &size) - fixed (OpenTK.Graphics.ES30.All* type_ptr = &type) + fixed (OpenTK.Graphics.ES30.TransformFeedbackType* type_ptr = &type) { - Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES30.All*)type_ptr, (StringBuilder)name); + Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES30.TransformFeedbackType*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -20209,13 +20209,13 @@ namespace OpenTK.Graphics.ES30 [System.CLSCompliant(false)] [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glGetTransformFeedbackVarying")] public static - unsafe void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES30.All* type, [OutAttribute] StringBuilder name) + unsafe void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES30.TransformFeedbackType* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES30.All*)type, (StringBuilder)name); + Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES30.TransformFeedbackType*)type, (StringBuilder)name); #if DEBUG } #endif @@ -20263,7 +20263,7 @@ namespace OpenTK.Graphics.ES30 [System.CLSCompliant(false)] [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glGetTransformFeedbackVarying")] public static - void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.ES30.All type, [OutAttribute] StringBuilder name) + void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.ES30.TransformFeedbackType type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -20273,9 +20273,9 @@ namespace OpenTK.Graphics.ES30 { fixed (Int32* length_ptr = &length) fixed (Int32* size_ptr = &size) - fixed (OpenTK.Graphics.ES30.All* type_ptr = &type) + fixed (OpenTK.Graphics.ES30.TransformFeedbackType* type_ptr = &type) { - Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES30.All*)type_ptr, (StringBuilder)name); + Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES30.TransformFeedbackType*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -20328,13 +20328,13 @@ namespace OpenTK.Graphics.ES30 [System.CLSCompliant(false)] [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glGetTransformFeedbackVarying")] public static - unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES30.All* type, [OutAttribute] StringBuilder name) + unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES30.TransformFeedbackType* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES30.All*)type, (StringBuilder)name); + Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES30.TransformFeedbackType*)type, (StringBuilder)name); #if DEBUG } #endif @@ -24056,13 +24056,13 @@ namespace OpenTK.Graphics.ES30 /// [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glProgramParameteri")] public static - void ProgramParameter(Int32 program, OpenTK.Graphics.ES30.All pname, Int32 value) + void ProgramParameter(Int32 program, OpenTK.Graphics.ES30.ProgramParameterName pname, Int32 value) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glProgramParameteri((UInt32)program, (OpenTK.Graphics.ES30.All)pname, (Int32)value); + Delegates.glProgramParameteri((UInt32)program, (OpenTK.Graphics.ES30.ProgramParameterName)pname, (Int32)value); #if DEBUG } #endif @@ -24090,13 +24090,13 @@ namespace OpenTK.Graphics.ES30 [System.CLSCompliant(false)] [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glProgramParameteri")] public static - void ProgramParameter(UInt32 program, OpenTK.Graphics.ES30.All pname, Int32 value) + void ProgramParameter(UInt32 program, OpenTK.Graphics.ES30.ProgramParameterName pname, Int32 value) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glProgramParameteri((UInt32)program, (OpenTK.Graphics.ES30.All)pname, (Int32)value); + Delegates.glProgramParameteri((UInt32)program, (OpenTK.Graphics.ES30.ProgramParameterName)pname, (Int32)value); #if DEBUG } #endif @@ -29202,13 +29202,13 @@ namespace OpenTK.Graphics.ES30 /// [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glTransformFeedbackVaryings")] public static - void TransformFeedbackVaryings(Int32 program, Int32 count, String[] varyings, OpenTK.Graphics.ES30.All bufferMode) + void TransformFeedbackVaryings(Int32 program, Int32 count, String[] varyings, OpenTK.Graphics.ES30.TransformFeedbackMode bufferMode) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glTransformFeedbackVaryings((UInt32)program, (Int32)count, (String[])varyings, (OpenTK.Graphics.ES30.All)bufferMode); + Delegates.glTransformFeedbackVaryings((UInt32)program, (Int32)count, (String[])varyings, (OpenTK.Graphics.ES30.TransformFeedbackMode)bufferMode); #if DEBUG } #endif @@ -29241,13 +29241,13 @@ namespace OpenTK.Graphics.ES30 [System.CLSCompliant(false)] [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glTransformFeedbackVaryings")] public static - void TransformFeedbackVaryings(UInt32 program, Int32 count, String[] varyings, OpenTK.Graphics.ES30.All bufferMode) + void TransformFeedbackVaryings(UInt32 program, Int32 count, String[] varyings, OpenTK.Graphics.ES30.TransformFeedbackMode bufferMode) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glTransformFeedbackVaryings((UInt32)program, (Int32)count, (String[])varyings, (OpenTK.Graphics.ES30.All)bufferMode); + Delegates.glTransformFeedbackVaryings((UInt32)program, (Int32)count, (String[])varyings, (OpenTK.Graphics.ES30.TransformFeedbackMode)bufferMode); #if DEBUG } #endif @@ -33994,13 +33994,13 @@ namespace OpenTK.Graphics.ES30 /// [requires: v3.0 and ES_VERSION_3_0] [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glVertexAttribIPointer")] public static - void VertexAttribIPointer(Int32 index, Int32 size, OpenTK.Graphics.ES30.All type, Int32 stride, IntPtr pointer) + void VertexAttribIPointer(Int32 index, Int32 size, OpenTK.Graphics.ES30.VertexAttribIntegerType type, Int32 stride, IntPtr pointer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.ES30.All)type, (Int32)stride, (IntPtr)pointer); + Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.ES30.VertexAttribIntegerType)type, (Int32)stride, (IntPtr)pointer); #if DEBUG } #endif @@ -34009,7 +34009,7 @@ namespace OpenTK.Graphics.ES30 /// [requires: v3.0 and ES_VERSION_3_0] [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glVertexAttribIPointer")] public static - void VertexAttribIPointer(Int32 index, Int32 size, OpenTK.Graphics.ES30.All type, Int32 stride, [InAttribute, OutAttribute] T4[] pointer) + void VertexAttribIPointer(Int32 index, Int32 size, OpenTK.Graphics.ES30.VertexAttribIntegerType type, Int32 stride, [InAttribute, OutAttribute] T4[] pointer) where T4 : struct { #if DEBUG @@ -34019,7 +34019,7 @@ namespace OpenTK.Graphics.ES30 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.ES30.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.ES30.VertexAttribIntegerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -34033,7 +34033,7 @@ namespace OpenTK.Graphics.ES30 /// [requires: v3.0 and ES_VERSION_3_0] [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glVertexAttribIPointer")] public static - void VertexAttribIPointer(Int32 index, Int32 size, OpenTK.Graphics.ES30.All type, Int32 stride, [InAttribute, OutAttribute] T4[,] pointer) + void VertexAttribIPointer(Int32 index, Int32 size, OpenTK.Graphics.ES30.VertexAttribIntegerType type, Int32 stride, [InAttribute, OutAttribute] T4[,] pointer) where T4 : struct { #if DEBUG @@ -34043,7 +34043,7 @@ namespace OpenTK.Graphics.ES30 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.ES30.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.ES30.VertexAttribIntegerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -34057,7 +34057,7 @@ namespace OpenTK.Graphics.ES30 /// [requires: v3.0 and ES_VERSION_3_0] [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glVertexAttribIPointer")] public static - void VertexAttribIPointer(Int32 index, Int32 size, OpenTK.Graphics.ES30.All type, Int32 stride, [InAttribute, OutAttribute] T4[,,] pointer) + void VertexAttribIPointer(Int32 index, Int32 size, OpenTK.Graphics.ES30.VertexAttribIntegerType type, Int32 stride, [InAttribute, OutAttribute] T4[,,] pointer) where T4 : struct { #if DEBUG @@ -34067,7 +34067,7 @@ namespace OpenTK.Graphics.ES30 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.ES30.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.ES30.VertexAttribIntegerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -34081,7 +34081,7 @@ namespace OpenTK.Graphics.ES30 /// [requires: v3.0 and ES_VERSION_3_0] [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glVertexAttribIPointer")] public static - void VertexAttribIPointer(Int32 index, Int32 size, OpenTK.Graphics.ES30.All type, Int32 stride, [InAttribute, OutAttribute] ref T4 pointer) + void VertexAttribIPointer(Int32 index, Int32 size, OpenTK.Graphics.ES30.VertexAttribIntegerType type, Int32 stride, [InAttribute, OutAttribute] ref T4 pointer) where T4 : struct { #if DEBUG @@ -34091,7 +34091,7 @@ namespace OpenTK.Graphics.ES30 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.ES30.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.ES30.VertexAttribIntegerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); pointer = (T4)pointer_ptr.Target; } finally @@ -34107,13 +34107,13 @@ namespace OpenTK.Graphics.ES30 [System.CLSCompliant(false)] [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glVertexAttribIPointer")] public static - void VertexAttribIPointer(UInt32 index, Int32 size, OpenTK.Graphics.ES30.All type, Int32 stride, IntPtr pointer) + void VertexAttribIPointer(UInt32 index, Int32 size, OpenTK.Graphics.ES30.VertexAttribIntegerType type, Int32 stride, IntPtr pointer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.ES30.All)type, (Int32)stride, (IntPtr)pointer); + Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.ES30.VertexAttribIntegerType)type, (Int32)stride, (IntPtr)pointer); #if DEBUG } #endif @@ -34123,7 +34123,7 @@ namespace OpenTK.Graphics.ES30 [System.CLSCompliant(false)] [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glVertexAttribIPointer")] public static - void VertexAttribIPointer(UInt32 index, Int32 size, OpenTK.Graphics.ES30.All type, Int32 stride, [InAttribute, OutAttribute] T4[] pointer) + void VertexAttribIPointer(UInt32 index, Int32 size, OpenTK.Graphics.ES30.VertexAttribIntegerType type, Int32 stride, [InAttribute, OutAttribute] T4[] pointer) where T4 : struct { #if DEBUG @@ -34133,7 +34133,7 @@ namespace OpenTK.Graphics.ES30 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.ES30.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.ES30.VertexAttribIntegerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -34148,7 +34148,7 @@ namespace OpenTK.Graphics.ES30 [System.CLSCompliant(false)] [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glVertexAttribIPointer")] public static - void VertexAttribIPointer(UInt32 index, Int32 size, OpenTK.Graphics.ES30.All type, Int32 stride, [InAttribute, OutAttribute] T4[,] pointer) + void VertexAttribIPointer(UInt32 index, Int32 size, OpenTK.Graphics.ES30.VertexAttribIntegerType type, Int32 stride, [InAttribute, OutAttribute] T4[,] pointer) where T4 : struct { #if DEBUG @@ -34158,7 +34158,7 @@ namespace OpenTK.Graphics.ES30 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.ES30.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.ES30.VertexAttribIntegerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -34173,7 +34173,7 @@ namespace OpenTK.Graphics.ES30 [System.CLSCompliant(false)] [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glVertexAttribIPointer")] public static - void VertexAttribIPointer(UInt32 index, Int32 size, OpenTK.Graphics.ES30.All type, Int32 stride, [InAttribute, OutAttribute] T4[,,] pointer) + void VertexAttribIPointer(UInt32 index, Int32 size, OpenTK.Graphics.ES30.VertexAttribIntegerType type, Int32 stride, [InAttribute, OutAttribute] T4[,,] pointer) where T4 : struct { #if DEBUG @@ -34183,7 +34183,7 @@ namespace OpenTK.Graphics.ES30 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.ES30.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.ES30.VertexAttribIntegerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -34198,7 +34198,7 @@ namespace OpenTK.Graphics.ES30 [System.CLSCompliant(false)] [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glVertexAttribIPointer")] public static - void VertexAttribIPointer(UInt32 index, Int32 size, OpenTK.Graphics.ES30.All type, Int32 stride, [InAttribute, OutAttribute] ref T4 pointer) + void VertexAttribIPointer(UInt32 index, Int32 size, OpenTK.Graphics.ES30.VertexAttribIntegerType type, Int32 stride, [InAttribute, OutAttribute] ref T4 pointer) where T4 : struct { #if DEBUG @@ -34208,7 +34208,7 @@ namespace OpenTK.Graphics.ES30 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.ES30.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.ES30.VertexAttribIntegerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); pointer = (T4)pointer_ptr.Target; } finally @@ -39631,13 +39631,13 @@ namespace OpenTK.Graphics.ES30 /// [AutoGenerated(Category = "EXT_separate_shader_objects", Version = "", EntryPoint = "glProgramParameteriEXT")] public static - void ProgramParameter(Int32 program, OpenTK.Graphics.ES30.All pname, Int32 value) + void ProgramParameter(Int32 program, OpenTK.Graphics.ES30.ProgramParameterName pname, Int32 value) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glProgramParameteriEXT((UInt32)program, (OpenTK.Graphics.ES30.All)pname, (Int32)value); + Delegates.glProgramParameteriEXT((UInt32)program, (OpenTK.Graphics.ES30.ProgramParameterName)pname, (Int32)value); #if DEBUG } #endif @@ -39665,13 +39665,13 @@ namespace OpenTK.Graphics.ES30 [System.CLSCompliant(false)] [AutoGenerated(Category = "EXT_separate_shader_objects", Version = "", EntryPoint = "glProgramParameteriEXT")] public static - void ProgramParameter(UInt32 program, OpenTK.Graphics.ES30.All pname, Int32 value) + void ProgramParameter(UInt32 program, OpenTK.Graphics.ES30.ProgramParameterName pname, Int32 value) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glProgramParameteriEXT((UInt32)program, (OpenTK.Graphics.ES30.All)pname, (Int32)value); + Delegates.glProgramParameteriEXT((UInt32)program, (OpenTK.Graphics.ES30.ProgramParameterName)pname, (Int32)value); #if DEBUG } #endif diff --git a/Source/OpenTK/Graphics/ES30/ES30Delegates.cs b/Source/OpenTK/Graphics/ES30/ES30Delegates.cs index 3cc7ed11..b2d13681 100644 --- a/Source/OpenTK/Graphics/ES30/ES30Delegates.cs +++ b/Source/OpenTK/Graphics/ES30/ES30Delegates.cs @@ -63,7 +63,7 @@ namespace OpenTK.Graphics.ES30 internal delegate void BeginQueryEXT(OpenTK.Graphics.ES30.QueryTarget target, UInt32 id); internal static BeginQueryEXT glBeginQueryEXT; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BeginTransformFeedback(OpenTK.Graphics.ES30.BeginFeedbackMode primitiveMode); + internal delegate void BeginTransformFeedback(OpenTK.Graphics.ES30.TransformFeedbackPrimitiveType primitiveMode); internal static BeginTransformFeedback glBeginTransformFeedback; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void BindAttribLocation(UInt32 program, UInt32 index, String name); @@ -540,13 +540,13 @@ namespace OpenTK.Graphics.ES30 internal unsafe delegate void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES30.ActiveUniformType* type, [OutAttribute] StringBuilder name); internal unsafe static GetActiveUniform glGetActiveUniform; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetActiveUniformBlockiv(UInt32 program, UInt32 uniformBlockIndex, OpenTK.Graphics.ES30.All pname, [OutAttribute] Int32* @params); + internal unsafe delegate void GetActiveUniformBlockiv(UInt32 program, UInt32 uniformBlockIndex, OpenTK.Graphics.ES30.ActiveUniformBlockParameter pname, [OutAttribute] Int32* @params); internal unsafe static GetActiveUniformBlockiv glGetActiveUniformBlockiv; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetActiveUniformBlockName(UInt32 program, UInt32 uniformBlockIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder uniformBlockName); internal unsafe static GetActiveUniformBlockName glGetActiveUniformBlockName; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetActiveUniformsiv(UInt32 program, Int32 uniformCount, UInt32* uniformIndices, OpenTK.Graphics.ES30.All pname, [OutAttribute] Int32* @params); + internal unsafe delegate void GetActiveUniformsiv(UInt32 program, Int32 uniformCount, UInt32* uniformIndices, OpenTK.Graphics.ES30.ActiveUniformParameter pname, [OutAttribute] Int32* @params); internal unsafe static GetActiveUniformsiv glGetActiveUniformsiv; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetAttachedShaders(UInt32 program, Int32 maxCount, [OutAttribute] Int32* count, [OutAttribute] UInt32* shaders); @@ -744,7 +744,7 @@ namespace OpenTK.Graphics.ES30 internal unsafe delegate void GetTexParameteriv(OpenTK.Graphics.ES30.TextureTarget target, OpenTK.Graphics.ES30.GetTextureParameter pname, [OutAttribute] Int32* @params); internal unsafe static GetTexParameteriv glGetTexParameteriv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES30.All* type, [OutAttribute] StringBuilder name); + internal unsafe delegate void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES30.TransformFeedbackType* type, [OutAttribute] StringBuilder name); internal unsafe static GetTransformFeedbackVarying glGetTransformFeedbackVarying; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetTranslatedShaderSourceANGLE(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source); @@ -906,10 +906,10 @@ namespace OpenTK.Graphics.ES30 internal delegate void ProgramBinaryOES(UInt32 program, OpenTK.Graphics.ES30.All binaryFormat, IntPtr binary, Int32 length); internal static ProgramBinaryOES glProgramBinaryOES; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ProgramParameteri(UInt32 program, OpenTK.Graphics.ES30.All pname, Int32 value); + internal delegate void ProgramParameteri(UInt32 program, OpenTK.Graphics.ES30.ProgramParameterName pname, Int32 value); internal static ProgramParameteri glProgramParameteri; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ProgramParameteriEXT(UInt32 program, OpenTK.Graphics.ES30.All pname, Int32 value); + internal delegate void ProgramParameteriEXT(UInt32 program, OpenTK.Graphics.ES30.ProgramParameterName pname, Int32 value); internal static ProgramParameteriEXT glProgramParameteriEXT; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void ProgramUniform1fEXT(UInt32 program, Int32 location, Single v0); @@ -1176,7 +1176,7 @@ namespace OpenTK.Graphics.ES30 internal delegate void TextureStorage3DEXT(UInt32 texture, OpenTK.Graphics.ES30.All target, Int32 levels, OpenTK.Graphics.ES30.All internalformat, Int32 width, Int32 height, Int32 depth); internal static TextureStorage3DEXT glTextureStorage3DEXT; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TransformFeedbackVaryings(UInt32 program, Int32 count, String[] varyings, OpenTK.Graphics.ES30.All bufferMode); + internal delegate void TransformFeedbackVaryings(UInt32 program, Int32 count, String[] varyings, OpenTK.Graphics.ES30.TransformFeedbackMode bufferMode); internal static TransformFeedbackVaryings glTransformFeedbackVaryings; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void Uniform1f(Int32 location, Single v0); @@ -1368,7 +1368,7 @@ namespace OpenTK.Graphics.ES30 internal unsafe delegate void VertexAttribI4uiv(UInt32 index, UInt32* v); internal unsafe static VertexAttribI4uiv glVertexAttribI4uiv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void VertexAttribIPointer(UInt32 index, Int32 size, OpenTK.Graphics.ES30.All type, Int32 stride, IntPtr pointer); + internal delegate void VertexAttribIPointer(UInt32 index, Int32 size, OpenTK.Graphics.ES30.VertexAttribIntegerType type, Int32 stride, IntPtr pointer); internal static VertexAttribIPointer glVertexAttribIPointer; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void VertexAttribPointer(UInt32 index, Int32 size, OpenTK.Graphics.ES30.VertexAttribPointerType type, bool normalized, Int32 stride, IntPtr pointer); diff --git a/Source/OpenTK/Graphics/ES30/ES30Enums.cs b/Source/OpenTK/Graphics/ES30/ES30Enums.cs index b42999b5..8d707c4c 100644 --- a/Source/OpenTK/Graphics/ES30/ES30Enums.cs +++ b/Source/OpenTK/Graphics/ES30/ES30Enums.cs @@ -61,34 +61,164 @@ namespace OpenTK.Graphics.ES30 /// public enum ActiveAttribType : int { + /// + /// Original was GL_INT = 0X1404 + /// + Int = ((int)0X1404) , + /// + /// Original was GL_UNSIGNED_INT = 0x1405 + /// + UnsignedInt = ((int)0x1405) , /// /// Original was GL_Float = 0X1406 /// Float = ((int)0X1406) , /// - /// Original was GL_FloatVec2 = 0X8b50 + /// Original was GL_FLOAT_VEC2 = 0x8B50 /// - FloatVec2 = ((int)0X8b50) , + FloatVec2 = ((int)0x8B50) , /// - /// Original was GL_FloatVec3 = 0X8b51 + /// Original was GL_FLOAT_VEC3 = 0x8B51 /// - FloatVec3 = ((int)0X8b51) , + FloatVec3 = ((int)0x8B51) , /// - /// Original was GL_FloatVec4 = 0X8b52 + /// Original was GL_FLOAT_VEC4 = 0x8B52 /// - FloatVec4 = ((int)0X8b52) , + FloatVec4 = ((int)0x8B52) , /// - /// Original was GL_FloatMat2 = 0X8b5a + /// Original was GL_INT_VEC2 = 0x8B53 /// - FloatMat2 = ((int)0X8b5a) , + IntVec2 = ((int)0x8B53) , /// - /// Original was GL_FloatMat3 = 0X8b5b + /// Original was GL_INT_VEC3 = 0x8B54 /// - FloatMat3 = ((int)0X8b5b) , + IntVec3 = ((int)0x8B54) , /// - /// Original was GL_FloatMat4 = 0X8b5c + /// Original was GL_INT_VEC4 = 0x8B55 /// - FloatMat4 = ((int)0X8b5c) , + IntVec4 = ((int)0x8B55) , + /// + /// Original was GL_FLOAT_MAT2 = 0x8B5A + /// + FloatMat2 = ((int)0x8B5A) , + /// + /// Original was GL_FLOAT_MAT3 = 0x8B5B + /// + FloatMat3 = ((int)0x8B5B) , + /// + /// Original was GL_FLOAT_MAT4 = 0x8B5C + /// + FloatMat4 = ((int)0x8B5C) , + /// + /// Original was GL_FLOAT_MAT2x3 = 0x8B65 + /// + FloatMat2x3 = ((int)0x8B65) , + /// + /// Original was GL_FLOAT_MAT2x4 = 0x8B66 + /// + FloatMat2x4 = ((int)0x8B66) , + /// + /// Original was GL_FLOAT_MAT3x2 = 0x8B67 + /// + FloatMat3x2 = ((int)0x8B67) , + /// + /// Original was GL_FLOAT_MAT3x4 = 0x8B68 + /// + FloatMat3x4 = ((int)0x8B68) , + /// + /// Original was GL_FLOAT_MAT4x2 = 0x8B69 + /// + FloatMat4x2 = ((int)0x8B69) , + /// + /// Original was GL_FLOAT_MAT4x3 = 0x8B6A + /// + FloatMat4x3 = ((int)0x8B6A) , + /// + /// Original was GL_UNSIGNED_INT_VEC2 = 0x8DC6 + /// + UnsignedIntVec2 = ((int)0x8DC6) , + /// + /// Original was GL_UNSIGNED_INT_VEC3 = 0x8DC7 + /// + UnsignedIntVec3 = ((int)0x8DC7) , + /// + /// Original was GL_UNSIGNED_INT_VEC4 = 0x8DC8 + /// + UnsignedIntVec4 = ((int)0x8DC8) , + } + + /// + /// Used in GL.GetActiveUniformBlock + /// + public enum ActiveUniformBlockParameter : int + { + /// + /// Original was GL_UNIFORM_BLOCK_BINDING = 0x8A3F + /// + UniformBlockBinding = ((int)0x8A3F) , + /// + /// Original was GL_UNIFORM_BLOCK_DATA_SIZE = 0x8A40 + /// + UniformBlockDataSize = ((int)0x8A40) , + /// + /// Original was GL_UNIFORM_BLOCK_NAME_LENGTH = 0x8A41 + /// + UniformBlockNameLength = ((int)0x8A41) , + /// + /// Original was GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS = 0x8A42 + /// + UniformBlockActiveUniforms = ((int)0x8A42) , + /// + /// Original was GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = 0x8A43 + /// + UniformBlockActiveUniformIndices = ((int)0x8A43) , + /// + /// Original was GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = 0x8A44 + /// + UniformBlockReferencedByVertexShader = ((int)0x8A44) , + /// + /// Original was GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = 0x8A46 + /// + UniformBlockReferencedByFragmentShader = ((int)0x8A46) , + } + + /// + /// Used in GL.GetActiveUniforms + /// + public enum ActiveUniformParameter : int + { + /// + /// Original was GL_UNIFORM_TYPE = 0x8A37 + /// + UniformType = ((int)0x8A37) , + /// + /// Original was GL_UNIFORM_SIZE = 0x8A38 + /// + UniformSize = ((int)0x8A38) , + /// + /// Original was GL_UNIFORM_NAME_LENGTH = 0x8A39 + /// + UniformNameLength = ((int)0x8A39) , + /// + /// Original was GL_UNIFORM_BLOCK_INDEX = 0x8A3A + /// + UniformBlockIndex = ((int)0x8A3A) , + /// + /// Original was GL_UNIFORM_OFFSET = 0x8A3B + /// + UniformOffset = ((int)0x8A3B) , + /// + /// Original was GL_UNIFORM_ARRAY_STRIDE = 0x8A3C + /// + UniformArrayStride = ((int)0x8A3C) , + /// + /// Original was GL_UNIFORM_MATRIX_STRIDE = 0x8A3D + /// + UniformMatrixStride = ((int)0x8A3D) , + /// + /// Original was GL_UNIFORM_IS_ROW_MAJOR = 0x8A3E + /// + UniformIsRowMajor = ((int)0x8A3E) , } /// @@ -101,73 +231,161 @@ namespace OpenTK.Graphics.ES30 /// Int = ((int)0X1404) , /// + /// Original was GL_UNSIGNED_INT = 0x1405 + /// + UnsignedInt = ((int)0x1405) , + /// /// Original was GL_Float = 0X1406 /// Float = ((int)0X1406) , /// - /// Original was GL_FloatVec2 = 0X8b50 + /// Original was GL_FLOAT_VEC2 = 0x8B50 /// - FloatVec2 = ((int)0X8b50) , + FloatVec2 = ((int)0x8B50) , /// - /// Original was GL_FloatVec3 = 0X8b51 + /// Original was GL_FLOAT_VEC3 = 0x8B51 /// - FloatVec3 = ((int)0X8b51) , + FloatVec3 = ((int)0x8B51) , /// - /// Original was GL_FloatVec4 = 0X8b52 + /// Original was GL_FLOAT_VEC4 = 0x8B52 /// - FloatVec4 = ((int)0X8b52) , + FloatVec4 = ((int)0x8B52) , /// - /// Original was GL_IntVec2 = 0X8b53 + /// Original was GL_INT_VEC2 = 0x8B53 /// - IntVec2 = ((int)0X8b53) , + IntVec2 = ((int)0x8B53) , /// - /// Original was GL_IntVec3 = 0X8b54 + /// Original was GL_INT_VEC3 = 0x8B54 /// - IntVec3 = ((int)0X8b54) , + IntVec3 = ((int)0x8B54) , /// - /// Original was GL_IntVec4 = 0X8b55 + /// Original was GL_INT_VEC4 = 0x8B55 /// - IntVec4 = ((int)0X8b55) , + IntVec4 = ((int)0x8B55) , /// /// Original was GL_Bool = 0X8b56 /// Bool = ((int)0X8b56) , /// - /// Original was GL_BoolVec2 = 0X8b57 + /// Original was GL_BOOL_VEC2 = 0x8B57 /// - BoolVec2 = ((int)0X8b57) , + BoolVec2 = ((int)0x8B57) , /// - /// Original was GL_BoolVec3 = 0X8b58 + /// Original was GL_BOOL_VEC3 = 0x8B58 /// - BoolVec3 = ((int)0X8b58) , + BoolVec3 = ((int)0x8B58) , /// - /// Original was GL_BoolVec4 = 0X8b59 + /// Original was GL_BOOL_VEC4 = 0x8B59 /// - BoolVec4 = ((int)0X8b59) , + BoolVec4 = ((int)0x8B59) , /// - /// Original was GL_FloatMat2 = 0X8b5a + /// Original was GL_FLOAT_MAT2 = 0x8B5A /// - FloatMat2 = ((int)0X8b5a) , + FloatMat2 = ((int)0x8B5A) , /// - /// Original was GL_FloatMat3 = 0X8b5b + /// Original was GL_FLOAT_MAT3 = 0x8B5B /// - FloatMat3 = ((int)0X8b5b) , + FloatMat3 = ((int)0x8B5B) , /// - /// Original was GL_FloatMat4 = 0X8b5c + /// Original was GL_FLOAT_MAT4 = 0x8B5C /// - FloatMat4 = ((int)0X8b5c) , + FloatMat4 = ((int)0x8B5C) , /// - /// Original was GL_Sampler2D = 0X8b5e + /// Original was GL_SAMPLER_2D = 0x8B5E /// - Sampler2D = ((int)0X8b5e) , + Sampler2D = ((int)0x8B5E) , /// - /// Original was GL_SamplerCube = 0X8b60 + /// Original was GL_SAMPLER_3D = 0x8B5F /// - SamplerCube = ((int)0X8b60) , + Sampler3D = ((int)0x8B5F) , + /// + /// Original was GL_SAMPLER_CUBE = 0x8B60 + /// + SamplerCube = ((int)0x8B60) , + /// + /// Original was GL_SAMPLER_2D_SHADOW = 0x8B62 + /// + Sampler2DShadow = ((int)0x8B62) , + /// + /// Original was GL_FLOAT_MAT2x3 = 0x8B65 + /// + FloatMat2x3 = ((int)0x8B65) , + /// + /// Original was GL_FLOAT_MAT2x4 = 0x8B66 + /// + FloatMat2x4 = ((int)0x8B66) , + /// + /// Original was GL_FLOAT_MAT3x4 = 0x8B68 + /// + FloatMat3x4 = ((int)0x8B68) , + /// + /// Original was GL_FLOAT_MAT4x2 = 0x8B69 + /// + FloatMat4x2 = ((int)0x8B69) , + /// + /// Original was GL_FLOAT_MAT4x3 = 0x8B6A + /// + FloatMat4x3 = ((int)0x8B6A) , + /// + /// Original was GL_SAMPLER_2D_ARRAY = 0x8DC1 + /// + Sampler2DArray = ((int)0x8DC1) , + /// + /// Original was GL_SAMPLER_2D_ARRAY_SHADOW = 0x8DC4 + /// + Sampler2DArrayShadow = ((int)0x8DC4) , + /// + /// Original was GL_SAMPLER_CUBE_SHADOW = 0x8DC5 + /// + SamplerCubeShadow = ((int)0x8DC5) , + /// + /// Original was GL_UNSIGNED_INT_VEC2 = 0x8DC6 + /// + UnsignedIntVec2 = ((int)0x8DC6) , + /// + /// Original was GL_UNSIGNED_INT_VEC3 = 0x8DC7 + /// + UnsignedIntVec3 = ((int)0x8DC7) , + /// + /// Original was GL_UNSIGNED_INT_VEC4 = 0x8DC8 + /// + UnsignedIntVec4 = ((int)0x8DC8) , + /// + /// Original was GL_INT_SAMPLER_2D = 0x8DCA + /// + IntSampler2D = ((int)0x8DCA) , + /// + /// Original was GL_INT_SAMPLER_3D = 0x8DCB + /// + IntSampler3D = ((int)0x8DCB) , + /// + /// Original was GL_INT_SAMPLER_CUBE = 0x8DCC + /// + IntSamplerCube = ((int)0x8DCC) , + /// + /// Original was GL_INT_SAMPLER_2D_ARRAY = 0x8DCF + /// + IntSampler2DArray = ((int)0x8DCF) , + /// + /// Original was GL_UNSIGNED_INT_SAMPLER_2D = 0x8DD2 + /// + UnsignedIntSampler2D = ((int)0x8DD2) , + /// + /// Original was GL_UNSIGNED_INT_SAMPLER_3D = 0x8DD3 + /// + UnsignedIntSampler3D = ((int)0x8DD3) , + /// + /// Original was GL_UNSIGNED_INT_SAMPLER_CUBE = 0x8DD4 + /// + UnsignedIntSamplerCube = ((int)0x8DD4) , + /// + /// Original was GL_UNSIGNED_INT_SAMPLER_2D_ARRAY = 0x8DD7 + /// + UnsignedIntSampler2DArray = ((int)0x8DD7) , } /// - /// Used in GL.Amd.GetPerfMonitorCounterData, GL.Amd.GetPerfMonitorCounterInfo and 95 other functions + /// Used in GL.Amd.GetPerfMonitorCounterData, GL.Amd.GetPerfMonitorCounterInfo and 88 other functions /// public enum All : int { @@ -8965,25 +9183,6 @@ namespace OpenTK.Graphics.ES30 AllAttribBits = unchecked((int)0xFFFFFFFF) , } - /// - /// Used in GL.BeginTransformFeedback - /// - public enum BeginFeedbackMode : int - { - /// - /// Original was GL_POINTS = 0X0000 - /// - Points = ((int)0X0000) , - /// - /// Original was GL_LINES = 0X0001 - /// - Lines = ((int)0X0001) , - /// - /// Original was GL_TRIANGLES = 0X0004 - /// - Triangles = ((int)0X0004) , - } - /// /// Used in GL.DrawArrays, GL.DrawElements /// @@ -10224,13 +10423,17 @@ namespace OpenTK.Graphics.ES30 public enum DrawElementsType : int { /// - /// Original was GL_UnsignedByte = 0X1401 + /// Original was GL_UNSIGNED_BYTE = 0x1401 /// - UnsignedByte = ((int)0X1401) , + UnsignedByte = ((int)0x1401) , /// - /// Original was GL_UnsignedShort = 0X1403 + /// Original was GL_UNSIGNED_SHORT = 0x1403 /// - UnsignedShort = ((int)0X1403) , + UnsignedShort = ((int)0x1403) , + /// + /// Original was GL_UNSIGNED_INT = 0x1405 + /// + UnsignedInt = ((int)0x1405) , } /// @@ -10670,6 +10873,10 @@ namespace OpenTK.Graphics.ES30 /// Original was GL_FRAGMENT_LIGHT7_SGIX = 0x8413 /// FragmentLight7Sgix = ((int)0x8413) , + /// + /// Original was GL_PRIMITIVE_RESTART_FIXED_INDEX = 0x8D69 + /// + PrimitiveRestartFixedIndex = ((int)0x8D69) , } /// @@ -20874,6 +21081,73 @@ namespace OpenTK.Graphics.ES30 /// Used in GL.GetProgram /// public enum ProgramParameter : int + { + /// + /// Original was GL_PROGRAM_BINARY_RETRIEVABLE_HINT = 0x8257 + /// + ProgramBinaryRetrievableHint = ((int)0x8257) , + /// + /// Original was GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH = 0x8A35 + /// + ActiveUniformBlockMaxNameLength = ((int)0x8A35) , + /// + /// Original was GL_ACTIVE_UNIFORM_BLOCKS = 0x8A36 + /// + ActiveUniformBlocks = ((int)0x8A36) , + /// + /// Original was GL_DELETE_STATUS = 0x8B80 + /// + DeleteStatus = ((int)0x8B80) , + /// + /// Original was GL_LINK_STATUS = 0x8B82 + /// + LinkStatus = ((int)0x8B82) , + /// + /// Original was GL_VALIDATE_STATUS = 0x8B83 + /// + ValidateStatus = ((int)0x8B83) , + /// + /// Original was GL_INFO_LOG_LENGTH = 0x8B84 + /// + InfoLogLength = ((int)0x8B84) , + /// + /// Original was GL_ATTACHED_SHADERS = 0x8B85 + /// + AttachedShaders = ((int)0x8B85) , + /// + /// Original was GL_ACTIVE_UNIFORMS = 0x8B86 + /// + ActiveUniforms = ((int)0x8B86) , + /// + /// Original was GL_ACTIVE_UNIFORM_MAX_LENGTH = 0x8B87 + /// + ActiveUniformMaxLength = ((int)0x8B87) , + /// + /// Original was GL_ACTIVE_ATTRIBUTES = 0x8B89 + /// + ActiveAttributes = ((int)0x8B89) , + /// + /// Original was GL_ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8B8A + /// + ActiveAttributeMaxLength = ((int)0x8B8A) , + /// + /// Original was GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH = 0x8C76 + /// + TransformFeedbackVaryingMaxLength = ((int)0x8C76) , + /// + /// Original was GL_TRANSFORM_FEEDBACK_BUFFER_MODE = 0x8C7F + /// + TransformFeedbackBufferMode = ((int)0x8C7F) , + /// + /// Original was GL_TRANSFORM_FEEDBACK_VARYINGS = 0x8C83 + /// + TransformFeedbackVaryings = ((int)0x8C83) , + } + + /// + /// Used in GL.ProgramParameter, GL.Ext.ProgramParameter + /// + public enum ProgramParameterName : int { /// /// Original was GL_DeleteStatus = 0X8b80 @@ -21537,29 +21811,29 @@ namespace OpenTK.Graphics.ES30 public enum ShaderPrecision : int { /// - /// Original was GL_LowFloat = 0X8df0 + /// Original was GL_LOW_FLOAT = 0x8DF0 /// - LowFloat = ((int)0X8df0) , + LowFloat = ((int)0x8DF0) , /// - /// Original was GL_MediumFloat = 0X8df1 + /// Original was GL_MEDIUM_FLOAT = 0x8DF1 /// - MediumFloat = ((int)0X8df1) , + MediumFloat = ((int)0x8DF1) , /// - /// Original was GL_HighFloat = 0X8df2 + /// Original was GL_HIGH_FLOAT = 0x8DF2 /// - HighFloat = ((int)0X8df2) , + HighFloat = ((int)0x8DF2) , /// - /// Original was GL_LowInt = 0X8df3 + /// Original was GL_LOW_INT = 0x8DF3 /// - LowInt = ((int)0X8df3) , + LowInt = ((int)0x8DF3) , /// - /// Original was GL_MediumInt = 0X8df4 + /// Original was GL_MEDIUM_INT = 0x8DF4 /// - MediumInt = ((int)0X8df4) , + MediumInt = ((int)0x8DF4) , /// - /// Original was GL_HighInt = 0X8df5 + /// Original was GL_HIGH_INT = 0x8DF5 /// - HighInt = ((int)0X8df5) , + HighInt = ((int)0x8DF5) , } /// @@ -21568,13 +21842,13 @@ namespace OpenTK.Graphics.ES30 public enum ShaderType : int { /// - /// Original was GL_FragmentShader = 0X8b30 + /// Original was GL_FRAGMENT_SHADER = 0x8B30 /// - FragmentShader = ((int)0X8b30) , + FragmentShader = ((int)0x8B30) , /// - /// Original was GL_VertexShader = 0X8b31 + /// Original was GL_VERTEX_SHADER = 0x8B31 /// - VertexShader = ((int)0X8b31) , + VertexShader = ((int)0x8B31) , } /// @@ -22435,6 +22709,40 @@ namespace OpenTK.Graphics.ES30 ClampToEdgeSgis = ((int)0x812F) , } + /// + /// Used in GL.TransformFeedbackVaryings + /// + public enum TransformFeedbackMode : int + { + /// + /// Original was GL_INTERLEAVED_ATTRIBS = 0x8C8C + /// + InterleavedAttribs = ((int)0x8C8C) , + /// + /// Original was GL_SEPARATE_ATTRIBS = 0x8C8D + /// + SeparateAttribs = ((int)0x8C8D) , + } + + /// + /// Used in GL.BeginTransformFeedback + /// + public enum TransformFeedbackPrimitiveType : int + { + /// + /// Original was GL_POINTS = 0X0000 + /// + Points = ((int)0X0000) , + /// + /// Original was GL_LINES = 0X0001 + /// + Lines = ((int)0X0001) , + /// + /// Original was GL_TRIANGLES = 0X0004 + /// + Triangles = ((int)0X0004) , + } + /// /// Used in GL.BindTransformFeedback /// @@ -22446,6 +22754,97 @@ namespace OpenTK.Graphics.ES30 TransformFeedback = ((int)0x8E22) , } + /// + /// Used in GL.GetTransformFeedbackVarying + /// + public enum TransformFeedbackType : int + { + /// + /// Original was GL_INT = 0X1404 + /// + Int = ((int)0X1404) , + /// + /// Original was GL_UNSIGNED_INT = 0x1405 + /// + UnsignedInt = ((int)0x1405) , + /// + /// Original was GL_FLOAT = 0X1406 + /// + Float = ((int)0X1406) , + /// + /// Original was GL_FLOAT_VEC2 = 0x8B50 + /// + FloatVec2 = ((int)0x8B50) , + /// + /// Original was GL_FLOAT_VEC3 = 0x8B51 + /// + FloatVec3 = ((int)0x8B51) , + /// + /// Original was GL_FLOAT_VEC4 = 0x8B52 + /// + FloatVec4 = ((int)0x8B52) , + /// + /// Original was GL_INT_VEC2 = 0x8B53 + /// + IntVec2 = ((int)0x8B53) , + /// + /// Original was GL_INT_VEC3 = 0x8B54 + /// + IntVec3 = ((int)0x8B54) , + /// + /// Original was GL_INT_VEC4 = 0x8B55 + /// + IntVec4 = ((int)0x8B55) , + /// + /// Original was GL_FLOAT_MAT2 = 0x8B5A + /// + FloatMat2 = ((int)0x8B5A) , + /// + /// Original was GL_FLOAT_MAT3 = 0x8B5B + /// + FloatMat3 = ((int)0x8B5B) , + /// + /// Original was GL_FLOAT_MAT4 = 0x8B5C + /// + FloatMat4 = ((int)0x8B5C) , + /// + /// Original was GL_FLOAT_MAT2x3 = 0x8B65 + /// + FloatMat2x3 = ((int)0x8B65) , + /// + /// Original was GL_FLOAT_MAT2x4 = 0x8B66 + /// + FloatMat2x4 = ((int)0x8B66) , + /// + /// Original was GL_FLOAT_MAT3x2 = 0x8B67 + /// + FloatMat3x2 = ((int)0x8B67) , + /// + /// Original was GL_FLOAT_MAT3x4 = 0x8B68 + /// + FloatMat3x4 = ((int)0x8B68) , + /// + /// Original was GL_FLOAT_MAT4x2 = 0x8B69 + /// + FloatMat4x2 = ((int)0x8B69) , + /// + /// Original was GL_FLOAT_MAT4x3 = 0x8B6A + /// + FloatMat4x3 = ((int)0x8B6A) , + /// + /// Original was GL_UNSIGNED_INT_VEC2 = 0x8DC6 + /// + UnsignedIntVec2 = ((int)0x8DC6) , + /// + /// Original was GL_UNSIGNED_INT_VEC3 = 0x8DC7 + /// + UnsignedIntVec3 = ((int)0x8DC7) , + /// + /// Original was GL_UNSIGNED_INT_VEC4 = 0x8DC8 + /// + UnsignedIntVec4 = ((int)0x8DC8) , + } + /// /// Not used directly. /// @@ -22494,39 +22893,78 @@ namespace OpenTK.Graphics.ES30 AllShaderBitsExt = unchecked((int)0xFFFFFFFF) , } + /// + /// Used in GL.VertexAttribIPointer + /// + public enum VertexAttribIntegerType : int + { + /// + /// Original was GL_BYTE = 0X1400 + /// + Byte = ((int)0X1400) , + /// + /// Original was GL_UNSIGNED_BYTE = 0x1401 + /// + UnsignedByte = ((int)0x1401) , + /// + /// Original was GL_SHORT = 0X1402 + /// + Short = ((int)0X1402) , + /// + /// Original was GL_UNSIGNED_SHORT = 0x1403 + /// + UnsignedShort = ((int)0x1403) , + /// + /// Original was GL_INT = 0X1404 + /// + Int = ((int)0X1404) , + /// + /// Original was GL_UNSIGNED_INT = 0x1405 + /// + UnsignedInt = ((int)0x1405) , + } + /// /// Used in GL.GetVertexAttrib /// public enum VertexAttribParameter : int { /// - /// Original was GL_VertexAttribArrayEnabled = 0X8622 + /// Original was GL_VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622 /// - VertexAttribArrayEnabled = ((int)0X8622) , + VertexAttribArrayEnabled = ((int)0x8622) , /// - /// Original was GL_VertexAttribArraySize = 0X8623 + /// Original was GL_VERTEX_ATTRIB_ARRAY_SIZE = 0x8623 /// - VertexAttribArraySize = ((int)0X8623) , + VertexAttribArraySize = ((int)0x8623) , /// - /// Original was GL_VertexAttribArrayStride = 0X8624 + /// Original was GL_VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624 /// - VertexAttribArrayStride = ((int)0X8624) , + VertexAttribArrayStride = ((int)0x8624) , /// - /// Original was GL_VertexAttribArrayType = 0X8625 + /// Original was GL_VERTEX_ATTRIB_ARRAY_TYPE = 0x8625 /// - VertexAttribArrayType = ((int)0X8625) , + VertexAttribArrayType = ((int)0x8625) , /// - /// Original was GL_CurrentVertexAttrib = 0X8626 + /// Original was GL_CURRENT_VERTEX_ATTRIB = 0x8626 /// - CurrentVertexAttrib = ((int)0X8626) , + CurrentVertexAttrib = ((int)0x8626) , /// - /// Original was GL_VertexAttribArrayNormalized = 0X886a + /// Original was GL_VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A /// - VertexAttribArrayNormalized = ((int)0X886a) , + VertexAttribArrayNormalized = ((int)0x886A) , /// - /// Original was GL_VertexAttribArrayBufferBinding = 0X889f + /// Original was GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F /// - VertexAttribArrayBufferBinding = ((int)0X889f) , + VertexAttribArrayBufferBinding = ((int)0x889F) , + /// + /// Original was GL_VERTEX_ATTRIB_ARRAY_INTEGER = 0x88FD + /// + VertexAttribArrayInteger = ((int)0x88FD) , + /// + /// Original was GL_VERTEX_ATTRIB_ARRAY_DIVISOR = 0x88FE + /// + VertexAttribArrayDivisor = ((int)0x88FE) , } /// @@ -22535,9 +22973,9 @@ namespace OpenTK.Graphics.ES30 public enum VertexAttribPointerParameter : int { /// - /// Original was GL_VertexAttribArrayPointer = 0X8645 + /// Original was GL_VERTEX_ATTRIB_ARRAY_POINTER = 0x8645 /// - VertexAttribArrayPointer = ((int)0X8645) , + VertexAttribArrayPointer = ((int)0x8645) , } /// @@ -22550,25 +22988,45 @@ namespace OpenTK.Graphics.ES30 /// Byte = ((int)0X1400) , /// - /// Original was GL_UnsignedByte = 0X1401 + /// Original was GL_UNSIGNED_BYTE = 0x1401 /// - UnsignedByte = ((int)0X1401) , + UnsignedByte = ((int)0x1401) , /// /// Original was GL_Short = 0X1402 /// Short = ((int)0X1402) , /// - /// Original was GL_UnsignedShort = 0X1403 + /// Original was GL_UNSIGNED_SHORT = 0x1403 /// - UnsignedShort = ((int)0X1403) , + UnsignedShort = ((int)0x1403) , + /// + /// Original was GL_INT = 0X1404 + /// + Int = ((int)0X1404) , + /// + /// Original was GL_UNSIGNED_INT = 0x1405 + /// + UnsignedInt = ((int)0x1405) , /// /// Original was GL_Float = 0X1406 /// Float = ((int)0X1406) , /// + /// Original was GL_HALF_FLOAT = 0x140B + /// + HalfFloat = ((int)0x140B) , + /// /// Original was GL_Fixed = 0X140c /// Fixed = ((int)0X140c) , + /// + /// Original was GL_UNSIGNED_INT_2_10_10_10_REV = 0x8368 + /// + UnsignedInt2101010Rev = ((int)0x8368) , + /// + /// Original was GL_INT_2_10_10_10_REV = 0x8D9F + /// + Int2101010Rev = ((int)0x8D9F) , } /// diff --git a/Source/OpenTK/Graphics/ES30/ES3Core.cs b/Source/OpenTK/Graphics/ES30/ES3Core.cs index 2d6fa8b0..548158f8 100644 --- a/Source/OpenTK/Graphics/ES30/ES3Core.cs +++ b/Source/OpenTK/Graphics/ES30/ES3Core.cs @@ -65,7 +65,7 @@ namespace OpenTK.Graphics.ES30 internal extern static void BeginQueryEXT(OpenTK.Graphics.ES30.QueryTarget target, UInt32 id); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBeginTransformFeedback", ExactSpelling = true)] - internal extern static void BeginTransformFeedback(OpenTK.Graphics.ES30.BeginFeedbackMode primitiveMode); + internal extern static void BeginTransformFeedback(OpenTK.Graphics.ES30.TransformFeedbackPrimitiveType primitiveMode); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBindAttribLocation", ExactSpelling = true)] internal extern static void BindAttribLocation(UInt32 program, UInt32 index, String name); @@ -542,13 +542,13 @@ namespace OpenTK.Graphics.ES30 internal extern static unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES30.ActiveUniformType* type, [OutAttribute] StringBuilder name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveUniformBlockiv", ExactSpelling = true)] - internal extern static unsafe void GetActiveUniformBlockiv(UInt32 program, UInt32 uniformBlockIndex, OpenTK.Graphics.ES30.All pname, [OutAttribute] Int32* @params); + internal extern static unsafe void GetActiveUniformBlockiv(UInt32 program, UInt32 uniformBlockIndex, OpenTK.Graphics.ES30.ActiveUniformBlockParameter pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveUniformBlockName", ExactSpelling = true)] internal extern static unsafe void GetActiveUniformBlockName(UInt32 program, UInt32 uniformBlockIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder uniformBlockName); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveUniformsiv", ExactSpelling = true)] - internal extern static unsafe void GetActiveUniformsiv(UInt32 program, Int32 uniformCount, UInt32* uniformIndices, OpenTK.Graphics.ES30.All pname, [OutAttribute] Int32* @params); + internal extern static unsafe void GetActiveUniformsiv(UInt32 program, Int32 uniformCount, UInt32* uniformIndices, OpenTK.Graphics.ES30.ActiveUniformParameter pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetAttachedShaders", ExactSpelling = true)] internal extern static unsafe void GetAttachedShaders(UInt32 program, Int32 maxCount, [OutAttribute] Int32* count, [OutAttribute] UInt32* shaders); @@ -746,7 +746,7 @@ namespace OpenTK.Graphics.ES30 internal extern static unsafe void GetTexParameteriv(OpenTK.Graphics.ES30.TextureTarget target, OpenTK.Graphics.ES30.GetTextureParameter pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTransformFeedbackVarying", ExactSpelling = true)] - internal extern static unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES30.All* type, [OutAttribute] StringBuilder name); + internal extern static unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES30.TransformFeedbackType* type, [OutAttribute] StringBuilder name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTranslatedShaderSourceANGLE", ExactSpelling = true)] internal extern static unsafe void GetTranslatedShaderSourceANGLE(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source); @@ -908,10 +908,10 @@ namespace OpenTK.Graphics.ES30 internal extern static void ProgramBinaryOES(UInt32 program, OpenTK.Graphics.ES30.All binaryFormat, IntPtr binary, Int32 length); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glProgramParameteri", ExactSpelling = true)] - internal extern static void ProgramParameteri(UInt32 program, OpenTK.Graphics.ES30.All pname, Int32 value); + internal extern static void ProgramParameteri(UInt32 program, OpenTK.Graphics.ES30.ProgramParameterName pname, Int32 value); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glProgramParameteriEXT", ExactSpelling = true)] - internal extern static void ProgramParameteriEXT(UInt32 program, OpenTK.Graphics.ES30.All pname, Int32 value); + internal extern static void ProgramParameteriEXT(UInt32 program, OpenTK.Graphics.ES30.ProgramParameterName pname, Int32 value); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glProgramUniform1fEXT", ExactSpelling = true)] internal extern static void ProgramUniform1fEXT(UInt32 program, Int32 location, Single v0); @@ -1178,7 +1178,7 @@ namespace OpenTK.Graphics.ES30 internal extern static void TextureStorage3DEXT(UInt32 texture, OpenTK.Graphics.ES30.All target, Int32 levels, OpenTK.Graphics.ES30.All internalformat, Int32 width, Int32 height, Int32 depth); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTransformFeedbackVaryings", ExactSpelling = true)] - internal extern static void TransformFeedbackVaryings(UInt32 program, Int32 count, String[] varyings, OpenTK.Graphics.ES30.All bufferMode); + internal extern static void TransformFeedbackVaryings(UInt32 program, Int32 count, String[] varyings, OpenTK.Graphics.ES30.TransformFeedbackMode bufferMode); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glUniform1f", ExactSpelling = true)] internal extern static void Uniform1f(Int32 location, Single v0); @@ -1370,7 +1370,7 @@ namespace OpenTK.Graphics.ES30 internal extern static unsafe void VertexAttribI4uiv(UInt32 index, UInt32* v); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glVertexAttribIPointer", ExactSpelling = true)] - internal extern static void VertexAttribIPointer(UInt32 index, Int32 size, OpenTK.Graphics.ES30.All type, Int32 stride, IntPtr pointer); + internal extern static void VertexAttribIPointer(UInt32 index, Int32 size, OpenTK.Graphics.ES30.VertexAttribIntegerType type, Int32 stride, IntPtr pointer); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glVertexAttribPointer", ExactSpelling = true)] internal extern static void VertexAttribPointer(UInt32 index, Int32 size, OpenTK.Graphics.ES30.VertexAttribPointerType type, bool normalized, Int32 stride, IntPtr pointer); diff --git a/Source/OpenTK/Graphics/OpenGL/GL.cs b/Source/OpenTK/Graphics/OpenGL/GL.cs index 45c323b9..9eaf1f64 100644 --- a/Source/OpenTK/Graphics/OpenGL/GL.cs +++ b/Source/OpenTK/Graphics/OpenGL/GL.cs @@ -37549,13 +37549,13 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "VERSION_3_0", Version = "3.0", EntryPoint = "glBeginTransformFeedback")] public static - void BeginTransformFeedback(OpenTK.Graphics.OpenGL.BeginFeedbackMode primitiveMode) + void BeginTransformFeedback(OpenTK.Graphics.OpenGL.TransformFeedbackPrimitiveType primitiveMode) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBeginTransformFeedback((OpenTK.Graphics.OpenGL.BeginFeedbackMode)primitiveMode); + Delegates.glBeginTransformFeedback((OpenTK.Graphics.OpenGL.TransformFeedbackPrimitiveType)primitiveMode); #if DEBUG } #endif @@ -79771,7 +79771,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "ARB_ES2_compatibility|VERSION_4_1", Version = "4.1", EntryPoint = "glGetShaderPrecisionFormat")] public static - void GetShaderPrecisionFormat(OpenTK.Graphics.OpenGL.ShaderType shadertype, OpenTK.Graphics.OpenGL.ShaderPrecisionType precisiontype, [OutAttribute] Int32[] range, [OutAttribute] Int32[] precision) + void GetShaderPrecisionFormat(OpenTK.Graphics.OpenGL.ShaderType shadertype, OpenTK.Graphics.OpenGL.ShaderPrecision precisiontype, [OutAttribute] Int32[] range, [OutAttribute] Int32[] precision) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -79782,7 +79782,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* range_ptr = range) fixed (Int32* precision_ptr = precision) { - Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.OpenGL.ShaderType)shadertype, (OpenTK.Graphics.OpenGL.ShaderPrecisionType)precisiontype, (Int32*)range_ptr, (Int32*)precision_ptr); + Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.OpenGL.ShaderType)shadertype, (OpenTK.Graphics.OpenGL.ShaderPrecision)precisiontype, (Int32*)range_ptr, (Int32*)precision_ptr); } } #if DEBUG @@ -79816,7 +79816,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "ARB_ES2_compatibility|VERSION_4_1", Version = "4.1", EntryPoint = "glGetShaderPrecisionFormat")] public static - void GetShaderPrecisionFormat(OpenTK.Graphics.OpenGL.ShaderType shadertype, OpenTK.Graphics.OpenGL.ShaderPrecisionType precisiontype, [OutAttribute] out Int32 range, [OutAttribute] out Int32 precision) + void GetShaderPrecisionFormat(OpenTK.Graphics.OpenGL.ShaderType shadertype, OpenTK.Graphics.OpenGL.ShaderPrecision precisiontype, [OutAttribute] out Int32 range, [OutAttribute] out Int32 precision) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -79827,7 +79827,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* range_ptr = &range) fixed (Int32* precision_ptr = &precision) { - Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.OpenGL.ShaderType)shadertype, (OpenTK.Graphics.OpenGL.ShaderPrecisionType)precisiontype, (Int32*)range_ptr, (Int32*)precision_ptr); + Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.OpenGL.ShaderType)shadertype, (OpenTK.Graphics.OpenGL.ShaderPrecision)precisiontype, (Int32*)range_ptr, (Int32*)precision_ptr); range = *range_ptr; precision = *precision_ptr; } @@ -79864,13 +79864,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ARB_ES2_compatibility|VERSION_4_1", Version = "4.1", EntryPoint = "glGetShaderPrecisionFormat")] public static - unsafe void GetShaderPrecisionFormat(OpenTK.Graphics.OpenGL.ShaderType shadertype, OpenTK.Graphics.OpenGL.ShaderPrecisionType precisiontype, [OutAttribute] Int32* range, [OutAttribute] Int32* precision) + unsafe void GetShaderPrecisionFormat(OpenTK.Graphics.OpenGL.ShaderType shadertype, OpenTK.Graphics.OpenGL.ShaderPrecision precisiontype, [OutAttribute] Int32* range, [OutAttribute] Int32* precision) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.OpenGL.ShaderType)shadertype, (OpenTK.Graphics.OpenGL.ShaderPrecisionType)precisiontype, (Int32*)range, (Int32*)precision); + Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.OpenGL.ShaderType)shadertype, (OpenTK.Graphics.OpenGL.ShaderPrecision)precisiontype, (Int32*)range, (Int32*)precision); #if DEBUG } #endif @@ -81871,7 +81871,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "VERSION_3_0", Version = "3.0", EntryPoint = "glGetTransformFeedbackVarying")] public static - void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ActiveAttribType type, [OutAttribute] StringBuilder name) + void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.TransformFeedbackType type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -81881,9 +81881,9 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) fixed (Int32* size_ptr = &size) - fixed (OpenTK.Graphics.OpenGL.ActiveAttribType* type_ptr = &type) + fixed (OpenTK.Graphics.OpenGL.TransformFeedbackType* type_ptr = &type) { - Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type_ptr, (StringBuilder)name); + Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.TransformFeedbackType*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -81936,13 +81936,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "VERSION_3_0", Version = "3.0", EntryPoint = "glGetTransformFeedbackVarying")] public static - unsafe void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] StringBuilder name) + unsafe void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.TransformFeedbackType* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type, (StringBuilder)name); + Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.TransformFeedbackType*)type, (StringBuilder)name); #if DEBUG } #endif @@ -81990,7 +81990,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "VERSION_3_0", Version = "3.0", EntryPoint = "glGetTransformFeedbackVarying")] public static - void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ActiveAttribType type, [OutAttribute] StringBuilder name) + void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.TransformFeedbackType type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -82000,9 +82000,9 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) fixed (Int32* size_ptr = &size) - fixed (OpenTK.Graphics.OpenGL.ActiveAttribType* type_ptr = &type) + fixed (OpenTK.Graphics.OpenGL.TransformFeedbackType* type_ptr = &type) { - Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type_ptr, (StringBuilder)name); + Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.TransformFeedbackType*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -82055,13 +82055,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "VERSION_3_0", Version = "3.0", EntryPoint = "glGetTransformFeedbackVarying")] public static - unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] StringBuilder name) + unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.TransformFeedbackType* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type, (StringBuilder)name); + Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.TransformFeedbackType*)type, (StringBuilder)name); #if DEBUG } #endif diff --git a/Source/OpenTK/Graphics/OpenGL/GLCore.cs b/Source/OpenTK/Graphics/OpenGL/GLCore.cs index f75af76e..ffb4a5fd 100644 --- a/Source/OpenTK/Graphics/OpenGL/GLCore.cs +++ b/Source/OpenTK/Graphics/OpenGL/GLCore.cs @@ -146,7 +146,7 @@ namespace OpenTK.Graphics.OpenGL internal extern static void BeginQueryIndexed(OpenTK.Graphics.OpenGL.QueryTarget target, UInt32 index, UInt32 id); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBeginTransformFeedback", ExactSpelling = true)] - internal extern static void BeginTransformFeedback(OpenTK.Graphics.OpenGL.BeginFeedbackMode primitiveMode); + internal extern static void BeginTransformFeedback(OpenTK.Graphics.OpenGL.TransformFeedbackPrimitiveType primitiveMode); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBeginTransformFeedbackEXT", ExactSpelling = true)] internal extern static void BeginTransformFeedbackEXT(OpenTK.Graphics.OpenGL.ExtTransformFeedback primitiveMode); @@ -2810,7 +2810,7 @@ namespace OpenTK.Graphics.OpenGL internal extern static unsafe void GetShaderiv(UInt32 shader, OpenTK.Graphics.OpenGL.ShaderParameter pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderPrecisionFormat", ExactSpelling = true)] - internal extern static unsafe void GetShaderPrecisionFormat(OpenTK.Graphics.OpenGL.ShaderType shadertype, OpenTK.Graphics.OpenGL.ShaderPrecisionType precisiontype, [OutAttribute] Int32* range, [OutAttribute] Int32* precision); + internal extern static unsafe void GetShaderPrecisionFormat(OpenTK.Graphics.OpenGL.ShaderType shadertype, OpenTK.Graphics.OpenGL.ShaderPrecision precisiontype, [OutAttribute] Int32* range, [OutAttribute] Int32* precision); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderSource", ExactSpelling = true)] internal extern static unsafe void GetShaderSource(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source); @@ -2939,7 +2939,7 @@ namespace OpenTK.Graphics.OpenGL internal extern static unsafe void GetTrackMatrixivNV(OpenTK.Graphics.OpenGL.AssemblyProgramTargetArb target, UInt32 address, OpenTK.Graphics.OpenGL.AssemblyProgramParameterArb pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTransformFeedbackVarying", ExactSpelling = true)] - internal extern static unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] StringBuilder name); + internal extern static unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.TransformFeedbackType* type, [OutAttribute] StringBuilder name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTransformFeedbackVaryingEXT", ExactSpelling = true)] internal extern static unsafe void GetTransformFeedbackVaryingEXT(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ExtTransformFeedback* type, [OutAttribute] StringBuilder name); diff --git a/Source/OpenTK/Graphics/OpenGL/GLDelegates.cs b/Source/OpenTK/Graphics/OpenGL/GLDelegates.cs index 630907fa..e836262e 100644 --- a/Source/OpenTK/Graphics/OpenGL/GLDelegates.cs +++ b/Source/OpenTK/Graphics/OpenGL/GLDelegates.cs @@ -144,7 +144,7 @@ namespace OpenTK.Graphics.OpenGL internal delegate void BeginQueryIndexed(OpenTK.Graphics.OpenGL.QueryTarget target, UInt32 index, UInt32 id); internal static BeginQueryIndexed glBeginQueryIndexed; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BeginTransformFeedback(OpenTK.Graphics.OpenGL.BeginFeedbackMode primitiveMode); + internal delegate void BeginTransformFeedback(OpenTK.Graphics.OpenGL.TransformFeedbackPrimitiveType primitiveMode); internal static BeginTransformFeedback glBeginTransformFeedback; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void BeginTransformFeedbackEXT(OpenTK.Graphics.OpenGL.ExtTransformFeedback primitiveMode); @@ -2808,7 +2808,7 @@ namespace OpenTK.Graphics.OpenGL internal unsafe delegate void GetShaderiv(UInt32 shader, OpenTK.Graphics.OpenGL.ShaderParameter pname, [OutAttribute] Int32* @params); internal unsafe static GetShaderiv glGetShaderiv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetShaderPrecisionFormat(OpenTK.Graphics.OpenGL.ShaderType shadertype, OpenTK.Graphics.OpenGL.ShaderPrecisionType precisiontype, [OutAttribute] Int32* range, [OutAttribute] Int32* precision); + internal unsafe delegate void GetShaderPrecisionFormat(OpenTK.Graphics.OpenGL.ShaderType shadertype, OpenTK.Graphics.OpenGL.ShaderPrecision precisiontype, [OutAttribute] Int32* range, [OutAttribute] Int32* precision); internal unsafe static GetShaderPrecisionFormat glGetShaderPrecisionFormat; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetShaderSource(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source); @@ -2937,7 +2937,7 @@ namespace OpenTK.Graphics.OpenGL internal unsafe delegate void GetTrackMatrixivNV(OpenTK.Graphics.OpenGL.AssemblyProgramTargetArb target, UInt32 address, OpenTK.Graphics.OpenGL.AssemblyProgramParameterArb pname, [OutAttribute] Int32* @params); internal unsafe static GetTrackMatrixivNV glGetTrackMatrixivNV; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] StringBuilder name); + internal unsafe delegate void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.TransformFeedbackType* type, [OutAttribute] StringBuilder name); internal unsafe static GetTransformFeedbackVarying glGetTransformFeedbackVarying; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetTransformFeedbackVaryingEXT(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ExtTransformFeedback* type, [OutAttribute] StringBuilder name); diff --git a/Source/OpenTK/Graphics/OpenGL/GLEnums.cs b/Source/OpenTK/Graphics/OpenGL/GLEnums.cs index bb95d4d9..2f3d5ae5 100644 --- a/Source/OpenTK/Graphics/OpenGL/GLEnums.cs +++ b/Source/OpenTK/Graphics/OpenGL/GLEnums.cs @@ -57,7 +57,7 @@ namespace OpenTK.Graphics.OpenGL } /// - /// Used in GL.GetActiveAttrib, GL.GetTransformFeedbackVarying + /// Used in GL.GetActiveAttrib /// public enum ActiveAttribType : int { @@ -27939,7 +27939,7 @@ namespace OpenTK.Graphics.OpenGL } /// - /// Used in GL.BeginTransformFeedback + /// Not used directly. /// public enum BeginFeedbackMode : int { @@ -49768,7 +49768,7 @@ namespace OpenTK.Graphics.OpenGL /// /// Used in GL.GetShaderPrecisionFormat /// - public enum ShaderPrecisionType : int + public enum ShaderPrecision : int { /// /// Original was GL_LOW_FLOAT = 0x8DF0 @@ -51745,6 +51745,25 @@ namespace OpenTK.Graphics.OpenGL SeparateAttribs = ((int)0x8C8D) , } + /// + /// Used in GL.BeginTransformFeedback + /// + public enum TransformFeedbackPrimitiveType : int + { + /// + /// Original was GL_POINTS = 0x0000 + /// + Points = ((int)0x0000) , + /// + /// Original was GL_LINES = 0x0001 + /// + Lines = ((int)0x0001) , + /// + /// Original was GL_TRIANGLES = 0x0004 + /// + Triangles = ((int)0x0004) , + } + /// /// Used in GL.BindTransformFeedback /// @@ -51756,6 +51775,149 @@ namespace OpenTK.Graphics.OpenGL TransformFeedback = ((int)0x8E22) , } + /// + /// Used in GL.GetTransformFeedbackVarying + /// + public enum TransformFeedbackType : int + { + /// + /// Original was GL_INT = 0x1404 + /// + Int = ((int)0x1404) , + /// + /// Original was GL_UNSIGNED_INT = 0x1405 + /// + UnsignedInt = ((int)0x1405) , + /// + /// Original was GL_FLOAT = 0x1406 + /// + Float = ((int)0x1406) , + /// + /// Original was GL_DOUBLE = 0x140A + /// + Double = ((int)0x140A) , + /// + /// Original was GL_FLOAT_VEC2 = 0x8B50 + /// + FloatVec2 = ((int)0x8B50) , + /// + /// Original was GL_FLOAT_VEC3 = 0x8B51 + /// + FloatVec3 = ((int)0x8B51) , + /// + /// Original was GL_FLOAT_VEC4 = 0x8B52 + /// + FloatVec4 = ((int)0x8B52) , + /// + /// Original was GL_INT_VEC2 = 0x8B53 + /// + IntVec2 = ((int)0x8B53) , + /// + /// Original was GL_INT_VEC3 = 0x8B54 + /// + IntVec3 = ((int)0x8B54) , + /// + /// Original was GL_INT_VEC4 = 0x8B55 + /// + IntVec4 = ((int)0x8B55) , + /// + /// Original was GL_FLOAT_MAT2 = 0x8B5A + /// + FloatMat2 = ((int)0x8B5A) , + /// + /// Original was GL_FLOAT_MAT3 = 0x8B5B + /// + FloatMat3 = ((int)0x8B5B) , + /// + /// Original was GL_FLOAT_MAT4 = 0x8B5C + /// + FloatMat4 = ((int)0x8B5C) , + /// + /// Original was GL_FLOAT_MAT2x3 = 0x8B65 + /// + FloatMat2x3 = ((int)0x8B65) , + /// + /// Original was GL_FLOAT_MAT2x4 = 0x8B66 + /// + FloatMat2x4 = ((int)0x8B66) , + /// + /// Original was GL_FLOAT_MAT3x2 = 0x8B67 + /// + FloatMat3x2 = ((int)0x8B67) , + /// + /// Original was GL_FLOAT_MAT3x4 = 0x8B68 + /// + FloatMat3x4 = ((int)0x8B68) , + /// + /// Original was GL_FLOAT_MAT4x2 = 0x8B69 + /// + FloatMat4x2 = ((int)0x8B69) , + /// + /// Original was GL_FLOAT_MAT4x3 = 0x8B6A + /// + FloatMat4x3 = ((int)0x8B6A) , + /// + /// Original was GL_UNSIGNED_INT_VEC2 = 0x8DC6 + /// + UnsignedIntVec2 = ((int)0x8DC6) , + /// + /// Original was GL_UNSIGNED_INT_VEC3 = 0x8DC7 + /// + UnsignedIntVec3 = ((int)0x8DC7) , + /// + /// Original was GL_UNSIGNED_INT_VEC4 = 0x8DC8 + /// + UnsignedIntVec4 = ((int)0x8DC8) , + /// + /// Original was GL_DOUBLE_MAT2 = 0x8F46 + /// + DoubleMat2 = ((int)0x8F46) , + /// + /// Original was GL_DOUBLE_MAT3 = 0x8F47 + /// + DoubleMat3 = ((int)0x8F47) , + /// + /// Original was GL_DOUBLE_MAT4 = 0x8F48 + /// + DoubleMat4 = ((int)0x8F48) , + /// + /// Original was GL_DOUBLE_MAT2x3 = 0x8F49 + /// + DoubleMat2x3 = ((int)0x8F49) , + /// + /// Original was GL_DOUBLE_MAT2x4 = 0x8F4A + /// + DoubleMat2x4 = ((int)0x8F4A) , + /// + /// Original was GL_DOUBLE_MAT3x2 = 0x8F4B + /// + DoubleMat3x2 = ((int)0x8F4B) , + /// + /// Original was GL_DOUBLE_MAT3x4 = 0x8F4C + /// + DoubleMat3x4 = ((int)0x8F4C) , + /// + /// Original was GL_DOUBLE_MAT4x2 = 0x8F4D + /// + DoubleMat4x2 = ((int)0x8F4D) , + /// + /// Original was GL_DOUBLE_MAT4x3 = 0x8F4E + /// + DoubleMat4x3 = ((int)0x8F4E) , + /// + /// Original was GL_DOUBLE_VEC2 = 0x8FFC + /// + DoubleVec2 = ((int)0x8FFC) , + /// + /// Original was GL_DOUBLE_VEC3 = 0x8FFD + /// + DoubleVec3 = ((int)0x8FFD) , + /// + /// Original was GL_DOUBLE_VEC4 = 0x8FFE + /// + DoubleVec4 = ((int)0x8FFE) , + } + /// /// Not used directly. /// diff --git a/Source/OpenTK/Graphics/OpenGL4/GL4.cs b/Source/OpenTK/Graphics/OpenGL4/GL4.cs index 93f75044..7ba38aec 100644 --- a/Source/OpenTK/Graphics/OpenGL4/GL4.cs +++ b/Source/OpenTK/Graphics/OpenGL4/GL4.cs @@ -4934,13 +4934,13 @@ namespace OpenTK.Graphics.OpenGL4 /// [AutoGenerated(Category = "VERSION_3_0", Version = "3.0", EntryPoint = "glBeginTransformFeedback")] public static - void BeginTransformFeedback(OpenTK.Graphics.OpenGL4.BeginFeedbackMode primitiveMode) + void BeginTransformFeedback(OpenTK.Graphics.OpenGL4.TransformFeedbackPrimitiveType primitiveMode) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBeginTransformFeedback((OpenTK.Graphics.OpenGL4.BeginFeedbackMode)primitiveMode); + Delegates.glBeginTransformFeedback((OpenTK.Graphics.OpenGL4.TransformFeedbackPrimitiveType)primitiveMode); #if DEBUG } #endif @@ -39983,7 +39983,7 @@ namespace OpenTK.Graphics.OpenGL4 /// [AutoGenerated(Category = "ARB_ES2_compatibility|VERSION_4_1", Version = "4.1", EntryPoint = "glGetShaderPrecisionFormat")] public static - void GetShaderPrecisionFormat(OpenTK.Graphics.OpenGL4.ShaderType shadertype, OpenTK.Graphics.OpenGL4.ShaderPrecisionType precisiontype, [OutAttribute] Int32[] range, [OutAttribute] Int32[] precision) + void GetShaderPrecisionFormat(OpenTK.Graphics.OpenGL4.ShaderType shadertype, OpenTK.Graphics.OpenGL4.ShaderPrecision precisiontype, [OutAttribute] Int32[] range, [OutAttribute] Int32[] precision) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -39994,7 +39994,7 @@ namespace OpenTK.Graphics.OpenGL4 fixed (Int32* range_ptr = range) fixed (Int32* precision_ptr = precision) { - Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.OpenGL4.ShaderType)shadertype, (OpenTK.Graphics.OpenGL4.ShaderPrecisionType)precisiontype, (Int32*)range_ptr, (Int32*)precision_ptr); + Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.OpenGL4.ShaderType)shadertype, (OpenTK.Graphics.OpenGL4.ShaderPrecision)precisiontype, (Int32*)range_ptr, (Int32*)precision_ptr); } } #if DEBUG @@ -40028,7 +40028,7 @@ namespace OpenTK.Graphics.OpenGL4 /// [AutoGenerated(Category = "ARB_ES2_compatibility|VERSION_4_1", Version = "4.1", EntryPoint = "glGetShaderPrecisionFormat")] public static - void GetShaderPrecisionFormat(OpenTK.Graphics.OpenGL4.ShaderType shadertype, OpenTK.Graphics.OpenGL4.ShaderPrecisionType precisiontype, [OutAttribute] out Int32 range, [OutAttribute] out Int32 precision) + void GetShaderPrecisionFormat(OpenTK.Graphics.OpenGL4.ShaderType shadertype, OpenTK.Graphics.OpenGL4.ShaderPrecision precisiontype, [OutAttribute] out Int32 range, [OutAttribute] out Int32 precision) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -40039,7 +40039,7 @@ namespace OpenTK.Graphics.OpenGL4 fixed (Int32* range_ptr = &range) fixed (Int32* precision_ptr = &precision) { - Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.OpenGL4.ShaderType)shadertype, (OpenTK.Graphics.OpenGL4.ShaderPrecisionType)precisiontype, (Int32*)range_ptr, (Int32*)precision_ptr); + Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.OpenGL4.ShaderType)shadertype, (OpenTK.Graphics.OpenGL4.ShaderPrecision)precisiontype, (Int32*)range_ptr, (Int32*)precision_ptr); range = *range_ptr; precision = *precision_ptr; } @@ -40076,13 +40076,13 @@ namespace OpenTK.Graphics.OpenGL4 [System.CLSCompliant(false)] [AutoGenerated(Category = "ARB_ES2_compatibility|VERSION_4_1", Version = "4.1", EntryPoint = "glGetShaderPrecisionFormat")] public static - unsafe void GetShaderPrecisionFormat(OpenTK.Graphics.OpenGL4.ShaderType shadertype, OpenTK.Graphics.OpenGL4.ShaderPrecisionType precisiontype, [OutAttribute] Int32* range, [OutAttribute] Int32* precision) + unsafe void GetShaderPrecisionFormat(OpenTK.Graphics.OpenGL4.ShaderType shadertype, OpenTK.Graphics.OpenGL4.ShaderPrecision precisiontype, [OutAttribute] Int32* range, [OutAttribute] Int32* precision) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.OpenGL4.ShaderType)shadertype, (OpenTK.Graphics.OpenGL4.ShaderPrecisionType)precisiontype, (Int32*)range, (Int32*)precision); + Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.OpenGL4.ShaderType)shadertype, (OpenTK.Graphics.OpenGL4.ShaderPrecision)precisiontype, (Int32*)range, (Int32*)precision); #if DEBUG } #endif @@ -41518,7 +41518,7 @@ namespace OpenTK.Graphics.OpenGL4 /// [AutoGenerated(Category = "VERSION_3_0", Version = "3.0", EntryPoint = "glGetTransformFeedbackVarying")] public static - void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL4.ActiveAttribType type, [OutAttribute] StringBuilder name) + void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL4.TransformFeedbackType type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -41528,9 +41528,9 @@ namespace OpenTK.Graphics.OpenGL4 { fixed (Int32* length_ptr = &length) fixed (Int32* size_ptr = &size) - fixed (OpenTK.Graphics.OpenGL4.ActiveAttribType* type_ptr = &type) + fixed (OpenTK.Graphics.OpenGL4.TransformFeedbackType* type_ptr = &type) { - Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL4.ActiveAttribType*)type_ptr, (StringBuilder)name); + Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL4.TransformFeedbackType*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -41583,13 +41583,13 @@ namespace OpenTK.Graphics.OpenGL4 [System.CLSCompliant(false)] [AutoGenerated(Category = "VERSION_3_0", Version = "3.0", EntryPoint = "glGetTransformFeedbackVarying")] public static - unsafe void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL4.ActiveAttribType* type, [OutAttribute] StringBuilder name) + unsafe void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL4.TransformFeedbackType* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL4.ActiveAttribType*)type, (StringBuilder)name); + Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL4.TransformFeedbackType*)type, (StringBuilder)name); #if DEBUG } #endif @@ -41637,7 +41637,7 @@ namespace OpenTK.Graphics.OpenGL4 [System.CLSCompliant(false)] [AutoGenerated(Category = "VERSION_3_0", Version = "3.0", EntryPoint = "glGetTransformFeedbackVarying")] public static - void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL4.ActiveAttribType type, [OutAttribute] StringBuilder name) + void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL4.TransformFeedbackType type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -41647,9 +41647,9 @@ namespace OpenTK.Graphics.OpenGL4 { fixed (Int32* length_ptr = &length) fixed (Int32* size_ptr = &size) - fixed (OpenTK.Graphics.OpenGL4.ActiveAttribType* type_ptr = &type) + fixed (OpenTK.Graphics.OpenGL4.TransformFeedbackType* type_ptr = &type) { - Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL4.ActiveAttribType*)type_ptr, (StringBuilder)name); + Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL4.TransformFeedbackType*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -41702,13 +41702,13 @@ namespace OpenTK.Graphics.OpenGL4 [System.CLSCompliant(false)] [AutoGenerated(Category = "VERSION_3_0", Version = "3.0", EntryPoint = "glGetTransformFeedbackVarying")] public static - unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL4.ActiveAttribType* type, [OutAttribute] StringBuilder name) + unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL4.TransformFeedbackType* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL4.ActiveAttribType*)type, (StringBuilder)name); + Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL4.TransformFeedbackType*)type, (StringBuilder)name); #if DEBUG } #endif diff --git a/Source/OpenTK/Graphics/OpenGL4/GL4Core.cs b/Source/OpenTK/Graphics/OpenGL4/GL4Core.cs index 1dfa4809..acad4ecc 100644 --- a/Source/OpenTK/Graphics/OpenGL4/GL4Core.cs +++ b/Source/OpenTK/Graphics/OpenGL4/GL4Core.cs @@ -59,7 +59,7 @@ namespace OpenTK.Graphics.OpenGL4 internal extern static void BeginQueryIndexed(OpenTK.Graphics.OpenGL4.QueryTarget target, UInt32 index, UInt32 id); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBeginTransformFeedback", ExactSpelling = true)] - internal extern static void BeginTransformFeedback(OpenTK.Graphics.OpenGL4.BeginFeedbackMode primitiveMode); + internal extern static void BeginTransformFeedback(OpenTK.Graphics.OpenGL4.TransformFeedbackPrimitiveType primitiveMode); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBindAttribLocation", ExactSpelling = true)] internal extern static void BindAttribLocation(UInt32 program, UInt32 index, String name); @@ -905,7 +905,7 @@ namespace OpenTK.Graphics.OpenGL4 internal extern static unsafe void GetShaderiv(UInt32 shader, OpenTK.Graphics.OpenGL4.ShaderParameter pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderPrecisionFormat", ExactSpelling = true)] - internal extern static unsafe void GetShaderPrecisionFormat(OpenTK.Graphics.OpenGL4.ShaderType shadertype, OpenTK.Graphics.OpenGL4.ShaderPrecisionType precisiontype, [OutAttribute] Int32* range, [OutAttribute] Int32* precision); + internal extern static unsafe void GetShaderPrecisionFormat(OpenTK.Graphics.OpenGL4.ShaderType shadertype, OpenTK.Graphics.OpenGL4.ShaderPrecision precisiontype, [OutAttribute] Int32* range, [OutAttribute] Int32* precision); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderSource", ExactSpelling = true)] internal extern static unsafe void GetShaderSource(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source); @@ -953,7 +953,7 @@ namespace OpenTK.Graphics.OpenGL4 internal extern static Int64 GetTextureSamplerHandleARB(UInt32 texture, UInt32 sampler); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTransformFeedbackVarying", ExactSpelling = true)] - internal extern static unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL4.ActiveAttribType* type, [OutAttribute] StringBuilder name); + internal extern static unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL4.TransformFeedbackType* type, [OutAttribute] StringBuilder name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetUniformBlockIndex", ExactSpelling = true)] internal extern static Int32 GetUniformBlockIndex(UInt32 program, String uniformBlockName); diff --git a/Source/OpenTK/Graphics/OpenGL4/GL4Delegates.cs b/Source/OpenTK/Graphics/OpenGL4/GL4Delegates.cs index a7f31b4e..a2fb9cf8 100644 --- a/Source/OpenTK/Graphics/OpenGL4/GL4Delegates.cs +++ b/Source/OpenTK/Graphics/OpenGL4/GL4Delegates.cs @@ -57,7 +57,7 @@ namespace OpenTK.Graphics.OpenGL4 internal delegate void BeginQueryIndexed(OpenTK.Graphics.OpenGL4.QueryTarget target, UInt32 index, UInt32 id); internal static BeginQueryIndexed glBeginQueryIndexed; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BeginTransformFeedback(OpenTK.Graphics.OpenGL4.BeginFeedbackMode primitiveMode); + internal delegate void BeginTransformFeedback(OpenTK.Graphics.OpenGL4.TransformFeedbackPrimitiveType primitiveMode); internal static BeginTransformFeedback glBeginTransformFeedback; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void BindAttribLocation(UInt32 program, UInt32 index, String name); @@ -903,7 +903,7 @@ namespace OpenTK.Graphics.OpenGL4 internal unsafe delegate void GetShaderiv(UInt32 shader, OpenTK.Graphics.OpenGL4.ShaderParameter pname, [OutAttribute] Int32* @params); internal unsafe static GetShaderiv glGetShaderiv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetShaderPrecisionFormat(OpenTK.Graphics.OpenGL4.ShaderType shadertype, OpenTK.Graphics.OpenGL4.ShaderPrecisionType precisiontype, [OutAttribute] Int32* range, [OutAttribute] Int32* precision); + internal unsafe delegate void GetShaderPrecisionFormat(OpenTK.Graphics.OpenGL4.ShaderType shadertype, OpenTK.Graphics.OpenGL4.ShaderPrecision precisiontype, [OutAttribute] Int32* range, [OutAttribute] Int32* precision); internal unsafe static GetShaderPrecisionFormat glGetShaderPrecisionFormat; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetShaderSource(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source); @@ -951,7 +951,7 @@ namespace OpenTK.Graphics.OpenGL4 internal delegate Int64 GetTextureSamplerHandleARB(UInt32 texture, UInt32 sampler); internal static GetTextureSamplerHandleARB glGetTextureSamplerHandleARB; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL4.ActiveAttribType* type, [OutAttribute] StringBuilder name); + internal unsafe delegate void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL4.TransformFeedbackType* type, [OutAttribute] StringBuilder name); internal unsafe static GetTransformFeedbackVarying glGetTransformFeedbackVarying; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Int32 GetUniformBlockIndex(UInt32 program, String uniformBlockName); diff --git a/Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs b/Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs index e263ff32..68be0b86 100644 --- a/Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs +++ b/Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs @@ -37,7 +37,7 @@ namespace OpenTK.Graphics.OpenGL4 } /// - /// Used in GL.GetActiveAttrib, GL.GetTransformFeedbackVarying + /// Used in GL.GetActiveAttrib /// public enum ActiveAttribType : int { @@ -14423,7 +14423,7 @@ namespace OpenTK.Graphics.OpenGL4 } /// - /// Used in GL.BeginTransformFeedback + /// Not used directly. /// public enum BeginFeedbackMode : int { @@ -25469,7 +25469,7 @@ namespace OpenTK.Graphics.OpenGL4 /// /// Used in GL.GetShaderPrecisionFormat /// - public enum ShaderPrecisionType : int + public enum ShaderPrecision : int { /// /// Original was GL_LOW_FLOAT = 0x8DF0 @@ -27217,6 +27217,25 @@ namespace OpenTK.Graphics.OpenGL4 SeparateAttribs = ((int)0x8C8D) , } + /// + /// Used in GL.BeginTransformFeedback + /// + public enum TransformFeedbackPrimitiveType : int + { + /// + /// Original was GL_POINTS = 0x0000 + /// + Points = ((int)0x0000) , + /// + /// Original was GL_LINES = 0x0001 + /// + Lines = ((int)0x0001) , + /// + /// Original was GL_TRIANGLES = 0x0004 + /// + Triangles = ((int)0x0004) , + } + /// /// Used in GL.BindTransformFeedback /// @@ -27228,6 +27247,149 @@ namespace OpenTK.Graphics.OpenGL4 TransformFeedback = ((int)0x8E22) , } + /// + /// Used in GL.GetTransformFeedbackVarying + /// + public enum TransformFeedbackType : int + { + /// + /// Original was GL_INT = 0x1404 + /// + Int = ((int)0x1404) , + /// + /// Original was GL_UNSIGNED_INT = 0x1405 + /// + UnsignedInt = ((int)0x1405) , + /// + /// Original was GL_FLOAT = 0x1406 + /// + Float = ((int)0x1406) , + /// + /// Original was GL_DOUBLE = 0x140A + /// + Double = ((int)0x140A) , + /// + /// Original was GL_FLOAT_VEC2 = 0x8B50 + /// + FloatVec2 = ((int)0x8B50) , + /// + /// Original was GL_FLOAT_VEC3 = 0x8B51 + /// + FloatVec3 = ((int)0x8B51) , + /// + /// Original was GL_FLOAT_VEC4 = 0x8B52 + /// + FloatVec4 = ((int)0x8B52) , + /// + /// Original was GL_INT_VEC2 = 0x8B53 + /// + IntVec2 = ((int)0x8B53) , + /// + /// Original was GL_INT_VEC3 = 0x8B54 + /// + IntVec3 = ((int)0x8B54) , + /// + /// Original was GL_INT_VEC4 = 0x8B55 + /// + IntVec4 = ((int)0x8B55) , + /// + /// Original was GL_FLOAT_MAT2 = 0x8B5A + /// + FloatMat2 = ((int)0x8B5A) , + /// + /// Original was GL_FLOAT_MAT3 = 0x8B5B + /// + FloatMat3 = ((int)0x8B5B) , + /// + /// Original was GL_FLOAT_MAT4 = 0x8B5C + /// + FloatMat4 = ((int)0x8B5C) , + /// + /// Original was GL_FLOAT_MAT2x3 = 0x8B65 + /// + FloatMat2x3 = ((int)0x8B65) , + /// + /// Original was GL_FLOAT_MAT2x4 = 0x8B66 + /// + FloatMat2x4 = ((int)0x8B66) , + /// + /// Original was GL_FLOAT_MAT3x2 = 0x8B67 + /// + FloatMat3x2 = ((int)0x8B67) , + /// + /// Original was GL_FLOAT_MAT3x4 = 0x8B68 + /// + FloatMat3x4 = ((int)0x8B68) , + /// + /// Original was GL_FLOAT_MAT4x2 = 0x8B69 + /// + FloatMat4x2 = ((int)0x8B69) , + /// + /// Original was GL_FLOAT_MAT4x3 = 0x8B6A + /// + FloatMat4x3 = ((int)0x8B6A) , + /// + /// Original was GL_UNSIGNED_INT_VEC2 = 0x8DC6 + /// + UnsignedIntVec2 = ((int)0x8DC6) , + /// + /// Original was GL_UNSIGNED_INT_VEC3 = 0x8DC7 + /// + UnsignedIntVec3 = ((int)0x8DC7) , + /// + /// Original was GL_UNSIGNED_INT_VEC4 = 0x8DC8 + /// + UnsignedIntVec4 = ((int)0x8DC8) , + /// + /// Original was GL_DOUBLE_MAT2 = 0x8F46 + /// + DoubleMat2 = ((int)0x8F46) , + /// + /// Original was GL_DOUBLE_MAT3 = 0x8F47 + /// + DoubleMat3 = ((int)0x8F47) , + /// + /// Original was GL_DOUBLE_MAT4 = 0x8F48 + /// + DoubleMat4 = ((int)0x8F48) , + /// + /// Original was GL_DOUBLE_MAT2x3 = 0x8F49 + /// + DoubleMat2x3 = ((int)0x8F49) , + /// + /// Original was GL_DOUBLE_MAT2x4 = 0x8F4A + /// + DoubleMat2x4 = ((int)0x8F4A) , + /// + /// Original was GL_DOUBLE_MAT3x2 = 0x8F4B + /// + DoubleMat3x2 = ((int)0x8F4B) , + /// + /// Original was GL_DOUBLE_MAT3x4 = 0x8F4C + /// + DoubleMat3x4 = ((int)0x8F4C) , + /// + /// Original was GL_DOUBLE_MAT4x2 = 0x8F4D + /// + DoubleMat4x2 = ((int)0x8F4D) , + /// + /// Original was GL_DOUBLE_MAT4x3 = 0x8F4E + /// + DoubleMat4x3 = ((int)0x8F4E) , + /// + /// Original was GL_DOUBLE_VEC2 = 0x8FFC + /// + DoubleVec2 = ((int)0x8FFC) , + /// + /// Original was GL_DOUBLE_VEC3 = 0x8FFD + /// + DoubleVec3 = ((int)0x8FFD) , + /// + /// Original was GL_DOUBLE_VEC4 = 0x8FFE + /// + DoubleVec4 = ((int)0x8FFE) , + } + /// /// Not used directly. ///