From c5a13766ac333726d006cc11109fc3958ca9d3be Mon Sep 17 00:00:00 2001 From: MorituriTeSalutant Date: Sat, 7 Nov 2015 18:02:49 -0800 Subject: [PATCH 1/2] Fixed the Enum types for glDrawElements* functions and regenerated the bindings. --- Source/Bind/Specifications/GL2/overrides.xml | 30 +++++++++++++++ Source/OpenTK/Graphics/OpenGL/GL.cs | 10 ++--- Source/OpenTK/Graphics/OpenGL/GLEnums.cs | 6 +-- Source/OpenTK/Graphics/OpenGL4/GL4.cs | 10 ++--- Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs | 6 +-- Source/Tests/Test.API.Desktop/api.cs | 40 ++++++++++---------- 6 files changed, 66 insertions(+), 36 deletions(-) diff --git a/Source/Bind/Specifications/GL2/overrides.xml b/Source/Bind/Specifications/GL2/overrides.xml index f0aeb722..e0ba7140 100644 --- a/Source/Bind/Specifications/GL2/overrides.xml +++ b/Source/Bind/Specifications/GL2/overrides.xml @@ -185,6 +185,15 @@ DrawBuffersEnum + + + + PrimitiveType + + + DrawElementsType + + @@ -490,6 +499,9 @@ PrimitiveType + + DrawElementsType + @@ -497,6 +509,9 @@ PrimitiveType + + DrawElementsType + @@ -504,6 +519,9 @@ PrimitiveType + + DrawElementsType + @@ -518,6 +536,9 @@ PrimitiveType + + DrawElementsType + @@ -1150,6 +1171,15 @@ PrimitiveType + + + + PrimitiveType + + + DrawElementsType + + diff --git a/Source/OpenTK/Graphics/OpenGL/GL.cs b/Source/OpenTK/Graphics/OpenGL/GL.cs index 877f176e..688463a7 100644 --- a/Source/OpenTK/Graphics/OpenGL/GL.cs +++ b/Source/OpenTK/Graphics/OpenGL/GL.cs @@ -54281,7 +54281,7 @@ namespace OpenTK.Graphics.OpenGL /// Specifies the distance in basic machine units between elements of the draw parameter array. /// [AutoGenerated(Category = "ARB_multi_draw_indirect|VERSION_4_3", Version = "4.3", EntryPoint = "glMultiDrawElementsIndirect")] - public static void MultiDrawElementsIndirect(OpenTK.Graphics.OpenGL.All mode, OpenTK.Graphics.OpenGL.All type, IntPtr indirect, Int32 drawcount, Int32 stride) { throw new NotImplementedException(); } + public static void MultiDrawElementsIndirect(OpenTK.Graphics.OpenGL.PrimitiveType mode, OpenTK.Graphics.OpenGL.DrawElementsType type, IntPtr indirect, Int32 drawcount, Int32 stride) { throw new NotImplementedException(); } /// [requires: v4.3 or ARB_multi_draw_indirect|VERSION_4_3] /// Render indexed primitives from array data, taking parameters from memory @@ -54303,7 +54303,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "ARB_multi_draw_indirect|VERSION_4_3", Version = "4.3", EntryPoint = "glMultiDrawElementsIndirect")] [CLSCompliant(false)] - public static void MultiDrawElementsIndirect(OpenTK.Graphics.OpenGL.All mode, OpenTK.Graphics.OpenGL.All type, [InAttribute, OutAttribute] T2[] indirect, Int32 drawcount, Int32 stride) + public static void MultiDrawElementsIndirect(OpenTK.Graphics.OpenGL.PrimitiveType mode, OpenTK.Graphics.OpenGL.DrawElementsType type, [InAttribute, OutAttribute] T2[] indirect, Int32 drawcount, Int32 stride) where T2 : struct { throw new NotImplementedException(); } @@ -54327,7 +54327,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "ARB_multi_draw_indirect|VERSION_4_3", Version = "4.3", EntryPoint = "glMultiDrawElementsIndirect")] [CLSCompliant(false)] - public static void MultiDrawElementsIndirect(OpenTK.Graphics.OpenGL.All mode, OpenTK.Graphics.OpenGL.All type, [InAttribute, OutAttribute] T2[,] indirect, Int32 drawcount, Int32 stride) + public static void MultiDrawElementsIndirect(OpenTK.Graphics.OpenGL.PrimitiveType mode, OpenTK.Graphics.OpenGL.DrawElementsType type, [InAttribute, OutAttribute] T2[,] indirect, Int32 drawcount, Int32 stride) where T2 : struct { throw new NotImplementedException(); } @@ -54351,7 +54351,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "ARB_multi_draw_indirect|VERSION_4_3", Version = "4.3", EntryPoint = "glMultiDrawElementsIndirect")] [CLSCompliant(false)] - public static void MultiDrawElementsIndirect(OpenTK.Graphics.OpenGL.All mode, OpenTK.Graphics.OpenGL.All type, [InAttribute, OutAttribute] T2[,,] indirect, Int32 drawcount, Int32 stride) + public static void MultiDrawElementsIndirect(OpenTK.Graphics.OpenGL.PrimitiveType mode, OpenTK.Graphics.OpenGL.DrawElementsType type, [InAttribute, OutAttribute] T2[,,] indirect, Int32 drawcount, Int32 stride) where T2 : struct { throw new NotImplementedException(); } @@ -54374,7 +54374,7 @@ namespace OpenTK.Graphics.OpenGL /// Specifies the distance in basic machine units between elements of the draw parameter array. /// [AutoGenerated(Category = "ARB_multi_draw_indirect|VERSION_4_3", Version = "4.3", EntryPoint = "glMultiDrawElementsIndirect")] - public static void MultiDrawElementsIndirect(OpenTK.Graphics.OpenGL.All mode, OpenTK.Graphics.OpenGL.All type, [InAttribute, OutAttribute] ref T2 indirect, Int32 drawcount, Int32 stride) + public static void MultiDrawElementsIndirect(OpenTK.Graphics.OpenGL.PrimitiveType mode, OpenTK.Graphics.OpenGL.DrawElementsType type, [InAttribute, OutAttribute] ref T2 indirect, Int32 drawcount, Int32 stride) where T2 : struct { throw new NotImplementedException(); } diff --git a/Source/OpenTK/Graphics/OpenGL/GLEnums.cs b/Source/OpenTK/Graphics/OpenGL/GLEnums.cs index 5e7554cf..2b46f859 100644 --- a/Source/OpenTK/Graphics/OpenGL/GLEnums.cs +++ b/Source/OpenTK/Graphics/OpenGL/GLEnums.cs @@ -740,7 +740,7 @@ namespace OpenTK.Graphics.OpenGL } /// - /// Used in GL.Arb.GetProgramEnvParameter, GL.Arb.GetProgramLocalParameter and 14 other functions + /// Used in GL.Arb.GetProgramEnvParameter, GL.Arb.GetProgramLocalParameter and 13 other functions /// public enum All : int { @@ -30973,7 +30973,7 @@ namespace OpenTK.Graphics.OpenGL } /// - /// Used in GL.Arb.DrawElementsInstanced, GL.DrawElements and 13 other functions + /// Used in GL.Arb.DrawElementsInstanced, GL.DrawElements and 14 other functions /// public enum DrawElementsType : int { @@ -48946,7 +48946,7 @@ namespace OpenTK.Graphics.OpenGL } /// - /// Used in GL.Apple.DrawElementArray, GL.Apple.DrawRangeElementArray and 38 other functions + /// Used in GL.Apple.DrawElementArray, GL.Apple.DrawRangeElementArray and 39 other functions /// public enum PrimitiveType : int { diff --git a/Source/OpenTK/Graphics/OpenGL4/GL4.cs b/Source/OpenTK/Graphics/OpenGL4/GL4.cs index 4a293d6c..bd15773c 100644 --- a/Source/OpenTK/Graphics/OpenGL4/GL4.cs +++ b/Source/OpenTK/Graphics/OpenGL4/GL4.cs @@ -28379,7 +28379,7 @@ namespace OpenTK.Graphics.OpenGL4 /// Specifies the distance in basic machine units between elements of the draw parameter array. /// [AutoGenerated(Category = "ARB_multi_draw_indirect|VERSION_4_3", Version = "4.3", EntryPoint = "glMultiDrawElementsIndirect")] - public static void MultiDrawElementsIndirect(OpenTK.Graphics.OpenGL4.All mode, OpenTK.Graphics.OpenGL4.All type, IntPtr indirect, Int32 drawcount, Int32 stride) { throw new NotImplementedException(); } + public static void MultiDrawElementsIndirect(OpenTK.Graphics.OpenGL4.PrimitiveType mode, OpenTK.Graphics.OpenGL4.DrawElementsType type, IntPtr indirect, Int32 drawcount, Int32 stride) { throw new NotImplementedException(); } /// [requires: v4.3 or ARB_multi_draw_indirect|VERSION_4_3] /// Render indexed primitives from array data, taking parameters from memory @@ -28401,7 +28401,7 @@ namespace OpenTK.Graphics.OpenGL4 /// [AutoGenerated(Category = "ARB_multi_draw_indirect|VERSION_4_3", Version = "4.3", EntryPoint = "glMultiDrawElementsIndirect")] [CLSCompliant(false)] - public static void MultiDrawElementsIndirect(OpenTK.Graphics.OpenGL4.All mode, OpenTK.Graphics.OpenGL4.All type, [InAttribute, OutAttribute] T2[] indirect, Int32 drawcount, Int32 stride) + public static void MultiDrawElementsIndirect(OpenTK.Graphics.OpenGL4.PrimitiveType mode, OpenTK.Graphics.OpenGL4.DrawElementsType type, [InAttribute, OutAttribute] T2[] indirect, Int32 drawcount, Int32 stride) where T2 : struct { throw new NotImplementedException(); } @@ -28425,7 +28425,7 @@ namespace OpenTK.Graphics.OpenGL4 /// [AutoGenerated(Category = "ARB_multi_draw_indirect|VERSION_4_3", Version = "4.3", EntryPoint = "glMultiDrawElementsIndirect")] [CLSCompliant(false)] - public static void MultiDrawElementsIndirect(OpenTK.Graphics.OpenGL4.All mode, OpenTK.Graphics.OpenGL4.All type, [InAttribute, OutAttribute] T2[,] indirect, Int32 drawcount, Int32 stride) + public static void MultiDrawElementsIndirect(OpenTK.Graphics.OpenGL4.PrimitiveType mode, OpenTK.Graphics.OpenGL4.DrawElementsType type, [InAttribute, OutAttribute] T2[,] indirect, Int32 drawcount, Int32 stride) where T2 : struct { throw new NotImplementedException(); } @@ -28449,7 +28449,7 @@ namespace OpenTK.Graphics.OpenGL4 /// [AutoGenerated(Category = "ARB_multi_draw_indirect|VERSION_4_3", Version = "4.3", EntryPoint = "glMultiDrawElementsIndirect")] [CLSCompliant(false)] - public static void MultiDrawElementsIndirect(OpenTK.Graphics.OpenGL4.All mode, OpenTK.Graphics.OpenGL4.All type, [InAttribute, OutAttribute] T2[,,] indirect, Int32 drawcount, Int32 stride) + public static void MultiDrawElementsIndirect(OpenTK.Graphics.OpenGL4.PrimitiveType mode, OpenTK.Graphics.OpenGL4.DrawElementsType type, [InAttribute, OutAttribute] T2[,,] indirect, Int32 drawcount, Int32 stride) where T2 : struct { throw new NotImplementedException(); } @@ -28472,7 +28472,7 @@ namespace OpenTK.Graphics.OpenGL4 /// Specifies the distance in basic machine units between elements of the draw parameter array. /// [AutoGenerated(Category = "ARB_multi_draw_indirect|VERSION_4_3", Version = "4.3", EntryPoint = "glMultiDrawElementsIndirect")] - public static void MultiDrawElementsIndirect(OpenTK.Graphics.OpenGL4.All mode, OpenTK.Graphics.OpenGL4.All type, [InAttribute, OutAttribute] ref T2 indirect, Int32 drawcount, Int32 stride) + public static void MultiDrawElementsIndirect(OpenTK.Graphics.OpenGL4.PrimitiveType mode, OpenTK.Graphics.OpenGL4.DrawElementsType type, [InAttribute, OutAttribute] ref T2 indirect, Int32 drawcount, Int32 stride) where T2 : struct { throw new NotImplementedException(); } diff --git a/Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs b/Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs index 4d2a5868..bc37c703 100644 --- a/Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs +++ b/Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs @@ -720,7 +720,7 @@ namespace OpenTK.Graphics.OpenGL4 } /// - /// Used in GL.Arb.BlendEquationSeparate, GL.Arb.BlendFunc and 48 other functions + /// Used in GL.Arb.BlendEquationSeparate, GL.Arb.BlendFunc and 47 other functions /// public enum All : int { @@ -16948,7 +16948,7 @@ namespace OpenTK.Graphics.OpenGL4 } /// - /// Used in GL.DrawElements, GL.DrawElementsBaseVertex and 8 other functions + /// Used in GL.DrawElements, GL.DrawElementsBaseVertex and 9 other functions /// public enum DrawElementsType : int { @@ -25281,7 +25281,7 @@ namespace OpenTK.Graphics.OpenGL4 } /// - /// Used in GL.DrawArrays, GL.DrawArraysIndirect and 19 other functions + /// Used in GL.DrawArrays, GL.DrawArraysIndirect and 20 other functions /// public enum PrimitiveType : int { diff --git a/Source/Tests/Test.API.Desktop/api.cs b/Source/Tests/Test.API.Desktop/api.cs index 37dee696..173d3569 100644 --- a/Source/Tests/Test.API.Desktop/api.cs +++ b/Source/Tests/Test.API.Desktop/api.cs @@ -25516,40 +25516,40 @@ static unsafe void Test_MultiDrawElementsBaseVertex_21637() { OpenTK.Graphics.OpenGL.GL.MultiDrawElementsBaseVertex(_mode,_count,_type,ref _indices,_drawcount,_basevertex); } static unsafe void Test_MultiDrawElementsIndirect_21638() { - OpenTK.Graphics.OpenGL.All _mode = default(OpenTK.Graphics.OpenGL.All); - OpenTK.Graphics.OpenGL.All _type = default(OpenTK.Graphics.OpenGL.All); + OpenTK.Graphics.OpenGL.PrimitiveType _mode = default(OpenTK.Graphics.OpenGL.PrimitiveType); + OpenTK.Graphics.OpenGL.DrawElementsType _type = default(OpenTK.Graphics.OpenGL.DrawElementsType); System.IntPtr _indirect = default(System.IntPtr); System.Int32 _drawcount = default(System.Int32); System.Int32 _stride = default(System.Int32); OpenTK.Graphics.OpenGL.GL.MultiDrawElementsIndirect(_mode,_type,_indirect,_drawcount,_stride); } static unsafe void Test_MultiDrawElementsIndirect_21639() { - OpenTK.Graphics.OpenGL.All _mode = default(OpenTK.Graphics.OpenGL.All); - OpenTK.Graphics.OpenGL.All _type = default(OpenTK.Graphics.OpenGL.All); + OpenTK.Graphics.OpenGL.PrimitiveType _mode = default(OpenTK.Graphics.OpenGL.PrimitiveType); + OpenTK.Graphics.OpenGL.DrawElementsType _type = default(OpenTK.Graphics.OpenGL.DrawElementsType); int[] _indirect = default(int[]); System.Int32 _drawcount = default(System.Int32); System.Int32 _stride = default(System.Int32); OpenTK.Graphics.OpenGL.GL.MultiDrawElementsIndirect(_mode,_type,_indirect,_drawcount,_stride); } static unsafe void Test_MultiDrawElementsIndirect_21640() { - OpenTK.Graphics.OpenGL.All _mode = default(OpenTK.Graphics.OpenGL.All); - OpenTK.Graphics.OpenGL.All _type = default(OpenTK.Graphics.OpenGL.All); + OpenTK.Graphics.OpenGL.PrimitiveType _mode = default(OpenTK.Graphics.OpenGL.PrimitiveType); + OpenTK.Graphics.OpenGL.DrawElementsType _type = default(OpenTK.Graphics.OpenGL.DrawElementsType); int[,] _indirect = default(int[,]); System.Int32 _drawcount = default(System.Int32); System.Int32 _stride = default(System.Int32); OpenTK.Graphics.OpenGL.GL.MultiDrawElementsIndirect(_mode,_type,_indirect,_drawcount,_stride); } static unsafe void Test_MultiDrawElementsIndirect_21641() { - OpenTK.Graphics.OpenGL.All _mode = default(OpenTK.Graphics.OpenGL.All); - OpenTK.Graphics.OpenGL.All _type = default(OpenTK.Graphics.OpenGL.All); + OpenTK.Graphics.OpenGL.PrimitiveType _mode = default(OpenTK.Graphics.OpenGL.PrimitiveType); + OpenTK.Graphics.OpenGL.DrawElementsType _type = default(OpenTK.Graphics.OpenGL.DrawElementsType); int[,,] _indirect = default(int[,,]); System.Int32 _drawcount = default(System.Int32); System.Int32 _stride = default(System.Int32); OpenTK.Graphics.OpenGL.GL.MultiDrawElementsIndirect(_mode,_type,_indirect,_drawcount,_stride); } static unsafe void Test_MultiDrawElementsIndirect_21642() { - OpenTK.Graphics.OpenGL.All _mode = default(OpenTK.Graphics.OpenGL.All); - OpenTK.Graphics.OpenGL.All _type = default(OpenTK.Graphics.OpenGL.All); + OpenTK.Graphics.OpenGL.PrimitiveType _mode = default(OpenTK.Graphics.OpenGL.PrimitiveType); + OpenTK.Graphics.OpenGL.DrawElementsType _type = default(OpenTK.Graphics.OpenGL.DrawElementsType); int _indirect = default(int); System.Int32 _drawcount = default(System.Int32); System.Int32 _stride = default(System.Int32); @@ -122819,40 +122819,40 @@ static unsafe void Test_MultiDrawElementsBaseVertex_36197() { OpenTK.Graphics.OpenGL4.GL.MultiDrawElementsBaseVertex(_mode,_count,_type,ref _indices,_drawcount,_basevertex); } static unsafe void Test_MultiDrawElementsIndirect_36198() { - OpenTK.Graphics.OpenGL4.All _mode = default(OpenTK.Graphics.OpenGL4.All); - OpenTK.Graphics.OpenGL4.All _type = default(OpenTK.Graphics.OpenGL4.All); + OpenTK.Graphics.OpenGL4.PrimitiveType _mode = default(OpenTK.Graphics.OpenGL4.PrimitiveType); + OpenTK.Graphics.OpenGL4.DrawElementsType _type = default(OpenTK.Graphics.OpenGL4.DrawElementsType); System.IntPtr _indirect = default(System.IntPtr); System.Int32 _drawcount = default(System.Int32); System.Int32 _stride = default(System.Int32); OpenTK.Graphics.OpenGL4.GL.MultiDrawElementsIndirect(_mode,_type,_indirect,_drawcount,_stride); } static unsafe void Test_MultiDrawElementsIndirect_36199() { - OpenTK.Graphics.OpenGL4.All _mode = default(OpenTK.Graphics.OpenGL4.All); - OpenTK.Graphics.OpenGL4.All _type = default(OpenTK.Graphics.OpenGL4.All); + OpenTK.Graphics.OpenGL4.PrimitiveType _mode = default(OpenTK.Graphics.OpenGL4.PrimitiveType); + OpenTK.Graphics.OpenGL4.DrawElementsType _type = default(OpenTK.Graphics.OpenGL4.DrawElementsType); int[] _indirect = default(int[]); System.Int32 _drawcount = default(System.Int32); System.Int32 _stride = default(System.Int32); OpenTK.Graphics.OpenGL4.GL.MultiDrawElementsIndirect(_mode,_type,_indirect,_drawcount,_stride); } static unsafe void Test_MultiDrawElementsIndirect_36200() { - OpenTK.Graphics.OpenGL4.All _mode = default(OpenTK.Graphics.OpenGL4.All); - OpenTK.Graphics.OpenGL4.All _type = default(OpenTK.Graphics.OpenGL4.All); + OpenTK.Graphics.OpenGL4.PrimitiveType _mode = default(OpenTK.Graphics.OpenGL4.PrimitiveType); + OpenTK.Graphics.OpenGL4.DrawElementsType _type = default(OpenTK.Graphics.OpenGL4.DrawElementsType); int[,] _indirect = default(int[,]); System.Int32 _drawcount = default(System.Int32); System.Int32 _stride = default(System.Int32); OpenTK.Graphics.OpenGL4.GL.MultiDrawElementsIndirect(_mode,_type,_indirect,_drawcount,_stride); } static unsafe void Test_MultiDrawElementsIndirect_36201() { - OpenTK.Graphics.OpenGL4.All _mode = default(OpenTK.Graphics.OpenGL4.All); - OpenTK.Graphics.OpenGL4.All _type = default(OpenTK.Graphics.OpenGL4.All); + OpenTK.Graphics.OpenGL4.PrimitiveType _mode = default(OpenTK.Graphics.OpenGL4.PrimitiveType); + OpenTK.Graphics.OpenGL4.DrawElementsType _type = default(OpenTK.Graphics.OpenGL4.DrawElementsType); int[,,] _indirect = default(int[,,]); System.Int32 _drawcount = default(System.Int32); System.Int32 _stride = default(System.Int32); OpenTK.Graphics.OpenGL4.GL.MultiDrawElementsIndirect(_mode,_type,_indirect,_drawcount,_stride); } static unsafe void Test_MultiDrawElementsIndirect_36202() { - OpenTK.Graphics.OpenGL4.All _mode = default(OpenTK.Graphics.OpenGL4.All); - OpenTK.Graphics.OpenGL4.All _type = default(OpenTK.Graphics.OpenGL4.All); + OpenTK.Graphics.OpenGL4.PrimitiveType _mode = default(OpenTK.Graphics.OpenGL4.PrimitiveType); + OpenTK.Graphics.OpenGL4.DrawElementsType _type = default(OpenTK.Graphics.OpenGL4.DrawElementsType); int _indirect = default(int); System.Int32 _drawcount = default(System.Int32); System.Int32 _stride = default(System.Int32); From dde2da6c00e6939c2e7ada78eb2650f8fc1f8ca6 Mon Sep 17 00:00:00 2001 From: MorituriTeSalutant Date: Sun, 8 Nov 2015 00:58:56 -0800 Subject: [PATCH 2/2] Added NONE as an option in BufferStorageFlags None is a desirable option in this enum because it's used much like BufferUsageHint.StaticDraw for ARB_Buffer_Storage. Using it explicitly in user code is more clear than 0, and makes it more clear to the inexperienced author that none is an option. --- Source/Bind/Specifications/GL2/overrides.xml | 1 + Source/OpenTK/Graphics/OpenGL/GLEnums.cs | 4 ++++ Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/Source/Bind/Specifications/GL2/overrides.xml b/Source/Bind/Specifications/GL2/overrides.xml index e0ba7140..5f7b2da1 100644 --- a/Source/Bind/Specifications/GL2/overrides.xml +++ b/Source/Bind/Specifications/GL2/overrides.xml @@ -2911,6 +2911,7 @@ + diff --git a/Source/OpenTK/Graphics/OpenGL/GLEnums.cs b/Source/OpenTK/Graphics/OpenGL/GLEnums.cs index 2b46f859..d1dbd4b7 100644 --- a/Source/OpenTK/Graphics/OpenGL/GLEnums.cs +++ b/Source/OpenTK/Graphics/OpenGL/GLEnums.cs @@ -29585,6 +29585,10 @@ namespace OpenTK.Graphics.OpenGL /// public enum BufferStorageFlags : int { + /// + /// Original was GL_NONE = 0 + /// + None = ((int)0), /// /// Original was GL_MAP_READ_BIT = 0x0001 /// diff --git a/Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs b/Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs index bc37c703..90df377d 100644 --- a/Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs +++ b/Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs @@ -15632,6 +15632,10 @@ namespace OpenTK.Graphics.OpenGL4 /// public enum BufferStorageFlags : int { + /// + /// Original was GL_NONE = 0 + /// + None = ((int)0), /// /// Original was GL_MAP_READ_BIT = 0x0001 ///