diff --git a/Source/OpenTK/Graphics/ES11/ES11.cs b/Source/OpenTK/Graphics/ES11/ES11.cs index e83b1b66..4725d653 100644 --- a/Source/OpenTK/Graphics/ES11/ES11.cs +++ b/Source/OpenTK/Graphics/ES11/ES11.cs @@ -2616,6 +2616,71 @@ namespace OpenTK.Graphics.ES11 #endif } + /// [requires: v1.0] + /// Delete named buffer objects + /// + /// + /// + /// Specifies the number of buffer objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of buffer objects to be deleted. + /// + /// + [AutoGenerated(Category = "VERSION_ES_CM_1_0", Version = "1.0", EntryPoint = "glDeleteBuffers")] + public static + void DeleteBuffer(Int32 buffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* buffers_ptr = (UInt32*)&buffers; + Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v1.0] + /// Delete named buffer objects + /// + /// + /// + /// Specifies the number of buffer objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of buffer objects to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "VERSION_ES_CM_1_0", Version = "1.0", EntryPoint = "glDeleteBuffers")] + public static + void DeleteBuffer(UInt32 buffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* buffers_ptr = (UInt32*)&buffers; + Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v1.0] /// Delete named buffer objects /// @@ -2806,6 +2871,71 @@ namespace OpenTK.Graphics.ES11 #endif } + /// [requires: v1.0] + /// Delete named textures + /// + /// + /// + /// Specifies the number of textures to be deleted. + /// + /// + /// + /// + /// Specifies an array of textures to be deleted. + /// + /// + [AutoGenerated(Category = "VERSION_ES_CM_1_0", Version = "1.0", EntryPoint = "glDeleteTextures")] + public static + void DeleteTexture(Int32 textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* textures_ptr = (UInt32*)&textures; + Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v1.0] + /// Delete named textures + /// + /// + /// + /// Specifies the number of textures to be deleted. + /// + /// + /// + /// + /// Specifies an array of textures to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "VERSION_ES_CM_1_0", Version = "1.0", EntryPoint = "glDeleteTextures")] + public static + void DeleteTexture(UInt32 textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* textures_ptr = (UInt32*)&textures; + Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v1.0] /// Delete named textures /// @@ -3937,8 +4067,8 @@ namespace OpenTK.Graphics.ES11 { const Int32 n = 1; Int32 retval; - Int32* buffers = &retval; - Delegates.glGenBuffers((Int32)n, (UInt32*)buffers); + Int32* buffers_ptr = &retval; + Delegates.glGenBuffers((Int32)n, (UInt32*)buffers_ptr); return retval; } #if DEBUG @@ -4163,8 +4293,8 @@ namespace OpenTK.Graphics.ES11 { const Int32 n = 1; Int32 retval; - Int32* textures = &retval; - Delegates.glGenTextures((Int32)n, (UInt32*)textures); + Int32* textures_ptr = &retval; + Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); return retval; } #if DEBUG @@ -4376,8 +4506,8 @@ namespace OpenTK.Graphics.ES11 unsafe { bool retval; - bool* data = &retval; - Delegates.glGetBooleanv((OpenTK.Graphics.ES11.GetPName)pname, (bool*)data); + bool* data_ptr = &retval; + Delegates.glGetBooleanv((OpenTK.Graphics.ES11.GetPName)pname, (bool*)data_ptr); return retval; } #if DEBUG @@ -4730,8 +4860,8 @@ namespace OpenTK.Graphics.ES11 unsafe { int retval; - int* @params = &retval; - Delegates.glGetFixedv((OpenTK.Graphics.ES11.All)pname, (int*)@params); + int* @params_ptr = &retval; + Delegates.glGetFixedv((OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); return retval; } #if DEBUG @@ -4810,8 +4940,8 @@ namespace OpenTK.Graphics.ES11 unsafe { Single retval; - Single* data = &retval; - Delegates.glGetFloatv((OpenTK.Graphics.ES11.GetPName)pname, (Single*)data); + Single* data_ptr = &retval; + Delegates.glGetFloatv((OpenTK.Graphics.ES11.GetPName)pname, (Single*)data_ptr); return retval; } #if DEBUG @@ -4890,8 +5020,8 @@ namespace OpenTK.Graphics.ES11 unsafe { Int32 retval; - Int32* data = &retval; - Delegates.glGetIntegerv((OpenTK.Graphics.ES11.GetPName)pname, (Int32*)data); + Int32* data_ptr = &retval; + Delegates.glGetIntegerv((OpenTK.Graphics.ES11.GetPName)pname, (Int32*)data_ptr); return retval; } #if DEBUG diff --git a/Source/OpenTK/Graphics/ES20/ES20.cs b/Source/OpenTK/Graphics/ES20/ES20.cs index 650583b1..17fd18b2 100644 --- a/Source/OpenTK/Graphics/ES20/ES20.cs +++ b/Source/OpenTK/Graphics/ES20/ES20.cs @@ -5825,6 +5825,71 @@ namespace OpenTK.Graphics.ES20 #endif } + /// [requires: v2.0 and ES_VERSION_2_0] + /// Delete named buffer objects + /// + /// + /// + /// Specifies the number of buffer objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of buffer objects to be deleted. + /// + /// + [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glDeleteBuffers")] + public static + void DeleteBuffer(Int32 buffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* buffers_ptr = (UInt32*)&buffers; + Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v2.0 and ES_VERSION_2_0] + /// Delete named buffer objects + /// + /// + /// + /// Specifies the number of buffer objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of buffer objects to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glDeleteBuffers")] + public static + void DeleteBuffer(UInt32 buffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* buffers_ptr = (UInt32*)&buffers; + Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v2.0 and ES_VERSION_2_0] /// Delete named buffer objects /// @@ -6015,6 +6080,71 @@ namespace OpenTK.Graphics.ES20 #endif } + /// [requires: v2.0 and ES_VERSION_2_0] + /// Delete framebuffer objects + /// + /// + /// + /// Specifies the number of framebuffer objects to be deleted. + /// + /// + /// + /// + /// A pointer to an array containing n framebuffer objects to be deleted. + /// + /// + [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glDeleteFramebuffers")] + public static + void DeleteFramebuffer(Int32 framebuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* framebuffers_ptr = (UInt32*)&framebuffers; + Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v2.0 and ES_VERSION_2_0] + /// Delete framebuffer objects + /// + /// + /// + /// Specifies the number of framebuffer objects to be deleted. + /// + /// + /// + /// + /// A pointer to an array containing n framebuffer objects to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glDeleteFramebuffers")] + public static + void DeleteFramebuffer(UInt32 framebuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* framebuffers_ptr = (UInt32*)&framebuffers; + Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v2.0 and ES_VERSION_2_0] /// Delete framebuffer objects /// @@ -6250,6 +6380,71 @@ namespace OpenTK.Graphics.ES20 #endif } + /// [requires: v2.0 and ES_VERSION_2_0] + /// Delete renderbuffer objects + /// + /// + /// + /// Specifies the number of renderbuffer objects to be deleted. + /// + /// + /// + /// + /// A pointer to an array containing n renderbuffer objects to be deleted. + /// + /// + [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glDeleteRenderbuffers")] + public static + void DeleteRenderbuffer(Int32 renderbuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* renderbuffers_ptr = (UInt32*)&renderbuffers; + Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v2.0 and ES_VERSION_2_0] + /// Delete renderbuffer objects + /// + /// + /// + /// Specifies the number of renderbuffer objects to be deleted. + /// + /// + /// + /// + /// A pointer to an array containing n renderbuffer objects to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glDeleteRenderbuffers")] + public static + void DeleteRenderbuffer(UInt32 renderbuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* renderbuffers_ptr = (UInt32*)&renderbuffers; + Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v2.0 and ES_VERSION_2_0] /// Delete renderbuffer objects /// @@ -6485,6 +6680,71 @@ namespace OpenTK.Graphics.ES20 #endif } + /// [requires: v2.0 and ES_VERSION_2_0] + /// Delete named textures + /// + /// + /// + /// Specifies the number of textures to be deleted. + /// + /// + /// + /// + /// Specifies an array of textures to be deleted. + /// + /// + [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glDeleteTextures")] + public static + void DeleteTexture(Int32 textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* textures_ptr = (UInt32*)&textures; + Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v2.0 and ES_VERSION_2_0] + /// Delete named textures + /// + /// + /// + /// Specifies the number of textures to be deleted. + /// + /// + /// + /// + /// Specifies an array of textures to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glDeleteTextures")] + public static + void DeleteTexture(UInt32 textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* textures_ptr = (UInt32*)&textures; + Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v2.0 and ES_VERSION_2_0] /// Delete named textures /// @@ -7614,8 +7874,8 @@ namespace OpenTK.Graphics.ES20 { const Int32 n = 1; Int32 retval; - Int32* buffers = &retval; - Delegates.glGenBuffers((Int32)n, (UInt32*)buffers); + Int32* buffers_ptr = &retval; + Delegates.glGenBuffers((Int32)n, (UInt32*)buffers_ptr); return retval; } #if DEBUG @@ -7862,8 +8122,8 @@ namespace OpenTK.Graphics.ES20 { const Int32 n = 1; Int32 retval; - Int32* framebuffers = &retval; - Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers); + Int32* framebuffers_ptr = &retval; + Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); return retval; } #if DEBUG @@ -8088,8 +8348,8 @@ namespace OpenTK.Graphics.ES20 { const Int32 n = 1; Int32 retval; - Int32* renderbuffers = &retval; - Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers); + Int32* renderbuffers_ptr = &retval; + Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); return retval; } #if DEBUG @@ -8314,8 +8574,8 @@ namespace OpenTK.Graphics.ES20 { const Int32 n = 1; Int32 retval; - Int32* textures = &retval; - Delegates.glGenTextures((Int32)n, (UInt32*)textures); + Int32* textures_ptr = &retval; + Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); return retval; } #if DEBUG @@ -9308,8 +9568,8 @@ namespace OpenTK.Graphics.ES20 unsafe { bool retval; - bool* data = &retval; - Delegates.glGetBooleanv((OpenTK.Graphics.ES20.GetPName)pname, (bool*)data); + bool* data_ptr = &retval; + Delegates.glGetBooleanv((OpenTK.Graphics.ES20.GetPName)pname, (bool*)data_ptr); return retval; } #if DEBUG @@ -9906,8 +10166,8 @@ namespace OpenTK.Graphics.ES20 unsafe { Single retval; - Single* data = &retval; - Delegates.glGetFloatv((OpenTK.Graphics.ES20.GetPName)pname, (Single*)data); + Single* data_ptr = &retval; + Delegates.glGetFloatv((OpenTK.Graphics.ES20.GetPName)pname, (Single*)data_ptr); return retval; } #if DEBUG @@ -10111,8 +10371,8 @@ namespace OpenTK.Graphics.ES20 unsafe { Int32 retval; - Int32* data = &retval; - Delegates.glGetIntegerv((OpenTK.Graphics.ES20.GetPName)pname, (Int32*)data); + Int32* data_ptr = &retval; + Delegates.glGetIntegerv((OpenTK.Graphics.ES20.GetPName)pname, (Int32*)data_ptr); return retval; } #if DEBUG diff --git a/Source/OpenTK/Graphics/ES20/Helper.cs b/Source/OpenTK/Graphics/ES20/Helper.cs index 1ae0860b..cb91f052 100644 --- a/Source/OpenTK/Graphics/ES20/Helper.cs +++ b/Source/OpenTK/Graphics/ES20/Helper.cs @@ -362,15 +362,6 @@ namespace OpenTK.Graphics.ES20 #endregion - #region public static void DeleteTexture(int id) - - public static void DeleteTexture(int id) - { - DeleteTextures(1, ref id); - } - - #endregion - #region Get[Float|Double] public static void GetFloat(GetPName pname, out Vector2 vector) diff --git a/Source/OpenTK/Graphics/ES30/ES30.cs b/Source/OpenTK/Graphics/ES30/ES30.cs index 204f30b6..adcde6b7 100644 --- a/Source/OpenTK/Graphics/ES30/ES30.cs +++ b/Source/OpenTK/Graphics/ES30/ES30.cs @@ -6593,6 +6593,71 @@ namespace OpenTK.Graphics.ES30 #endif } + /// [requires: v2.0 and ES_VERSION_2_0] + /// Delete named buffer objects + /// + /// + /// + /// Specifies the number of buffer objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of buffer objects to be deleted. + /// + /// + [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glDeleteBuffers")] + public static + void DeleteBuffer(Int32 buffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* buffers_ptr = (UInt32*)&buffers; + Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v2.0 and ES_VERSION_2_0] + /// Delete named buffer objects + /// + /// + /// + /// Specifies the number of buffer objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of buffer objects to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glDeleteBuffers")] + public static + void DeleteBuffer(UInt32 buffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* buffers_ptr = (UInt32*)&buffers; + Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v2.0 and ES_VERSION_2_0] /// Delete named buffer objects /// @@ -6783,6 +6848,71 @@ namespace OpenTK.Graphics.ES30 #endif } + /// [requires: v2.0 and ES_VERSION_2_0] + /// Delete framebuffer objects + /// + /// + /// + /// Specifies the number of framebuffer objects to be deleted. + /// + /// + /// + /// + /// A pointer to an array containing n framebuffer objects to be deleted. + /// + /// + [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glDeleteFramebuffers")] + public static + void DeleteFramebuffer(Int32 framebuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* framebuffers_ptr = (UInt32*)&framebuffers; + Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v2.0 and ES_VERSION_2_0] + /// Delete framebuffer objects + /// + /// + /// + /// Specifies the number of framebuffer objects to be deleted. + /// + /// + /// + /// + /// A pointer to an array containing n framebuffer objects to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glDeleteFramebuffers")] + public static + void DeleteFramebuffer(UInt32 framebuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* framebuffers_ptr = (UInt32*)&framebuffers; + Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v2.0 and ES_VERSION_2_0] /// Delete framebuffer objects /// @@ -7018,6 +7148,71 @@ namespace OpenTK.Graphics.ES30 #endif } + /// [requires: v3.0 and ES_VERSION_3_0] + /// Delete named query objects + /// + /// + /// + /// Specifies the number of query objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of query objects to be deleted. + /// + /// + [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteQueries")] + public static + void DeleteQuery(Int32 ids) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* ids_ptr = (UInt32*)&ids; + Delegates.glDeleteQueries((Int32)n, (UInt32*)ids_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v3.0 and ES_VERSION_3_0] + /// Delete named query objects + /// + /// + /// + /// Specifies the number of query objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of query objects to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteQueries")] + public static + void DeleteQuery(UInt32 ids) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* ids_ptr = (UInt32*)&ids; + Delegates.glDeleteQueries((Int32)n, (UInt32*)ids_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v3.0 and ES_VERSION_3_0] /// Delete named query objects /// @@ -7208,6 +7403,71 @@ namespace OpenTK.Graphics.ES30 #endif } + /// [requires: v2.0 and ES_VERSION_2_0] + /// Delete renderbuffer objects + /// + /// + /// + /// Specifies the number of renderbuffer objects to be deleted. + /// + /// + /// + /// + /// A pointer to an array containing n renderbuffer objects to be deleted. + /// + /// + [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glDeleteRenderbuffers")] + public static + void DeleteRenderbuffer(Int32 renderbuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* renderbuffers_ptr = (UInt32*)&renderbuffers; + Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v2.0 and ES_VERSION_2_0] + /// Delete renderbuffer objects + /// + /// + /// + /// Specifies the number of renderbuffer objects to be deleted. + /// + /// + /// + /// + /// A pointer to an array containing n renderbuffer objects to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glDeleteRenderbuffers")] + public static + void DeleteRenderbuffer(UInt32 renderbuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* renderbuffers_ptr = (UInt32*)&renderbuffers; + Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v2.0 and ES_VERSION_2_0] /// Delete renderbuffer objects /// @@ -7398,6 +7658,71 @@ namespace OpenTK.Graphics.ES30 #endif } + /// [requires: v3.0 and ES_VERSION_3_0] + /// Delete named sampler objects + /// + /// + /// + /// Specifies the number of sampler objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of sampler objects to be deleted. + /// + /// + [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteSamplers")] + public static + void DeleteSampler(Int32 samplers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 count = 1; + UInt32* samplers_ptr = (UInt32*)&samplers; + Delegates.glDeleteSamplers((Int32)count, (UInt32*)samplers_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v3.0 and ES_VERSION_3_0] + /// Delete named sampler objects + /// + /// + /// + /// Specifies the number of sampler objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of sampler objects to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteSamplers")] + public static + void DeleteSampler(UInt32 samplers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 count = 1; + UInt32* samplers_ptr = (UInt32*)&samplers; + Delegates.glDeleteSamplers((Int32)count, (UInt32*)samplers_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v3.0 and ES_VERSION_3_0] /// Delete named sampler objects /// @@ -7655,6 +7980,71 @@ namespace OpenTK.Graphics.ES30 #endif } + /// [requires: v2.0 and ES_VERSION_2_0] + /// Delete named textures + /// + /// + /// + /// Specifies the number of textures to be deleted. + /// + /// + /// + /// + /// Specifies an array of textures to be deleted. + /// + /// + [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glDeleteTextures")] + public static + void DeleteTexture(Int32 textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* textures_ptr = (UInt32*)&textures; + Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v2.0 and ES_VERSION_2_0] + /// Delete named textures + /// + /// + /// + /// Specifies the number of textures to be deleted. + /// + /// + /// + /// + /// Specifies an array of textures to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glDeleteTextures")] + public static + void DeleteTexture(UInt32 textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* textures_ptr = (UInt32*)&textures; + Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v2.0 and ES_VERSION_2_0] /// Delete named textures /// @@ -7845,6 +8235,71 @@ namespace OpenTK.Graphics.ES30 #endif } + /// [requires: v3.0 and ES_VERSION_3_0] + /// Delete transform feedback objects + /// + /// + /// + /// Specifies the number of transform feedback objects to delete. + /// + /// + /// + /// + /// Specifies an array of names of transform feedback objects to delete. + /// + /// + [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteTransformFeedbacks")] + public static + void DeleteTransformFeedback(Int32 ids) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* ids_ptr = (UInt32*)&ids; + Delegates.glDeleteTransformFeedbacks((Int32)n, (UInt32*)ids_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v3.0 and ES_VERSION_3_0] + /// Delete transform feedback objects + /// + /// + /// + /// Specifies the number of transform feedback objects to delete. + /// + /// + /// + /// + /// Specifies an array of names of transform feedback objects to delete. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteTransformFeedbacks")] + public static + void DeleteTransformFeedback(UInt32 ids) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* ids_ptr = (UInt32*)&ids; + Delegates.glDeleteTransformFeedbacks((Int32)n, (UInt32*)ids_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v3.0 and ES_VERSION_3_0] /// Delete transform feedback objects /// @@ -8035,6 +8490,71 @@ namespace OpenTK.Graphics.ES30 #endif } + /// [requires: v3.0 and ES_VERSION_3_0] + /// Delete vertex array objects + /// + /// + /// + /// Specifies the number of vertex array objects to be deleted. + /// + /// + /// + /// + /// Specifies the address of an array containing the n names of the objects to be deleted. + /// + /// + [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteVertexArrays")] + public static + void DeleteVertexArray(Int32 arrays) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* arrays_ptr = (UInt32*)&arrays; + Delegates.glDeleteVertexArrays((Int32)n, (UInt32*)arrays_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v3.0 and ES_VERSION_3_0] + /// Delete vertex array objects + /// + /// + /// + /// Specifies the number of vertex array objects to be deleted. + /// + /// + /// + /// + /// Specifies the address of an array containing the n names of the objects to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteVertexArrays")] + public static + void DeleteVertexArray(UInt32 arrays) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* arrays_ptr = (UInt32*)&arrays; + Delegates.glDeleteVertexArrays((Int32)n, (UInt32*)arrays_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v3.0 and ES_VERSION_3_0] /// Delete vertex array objects /// @@ -10011,8 +10531,8 @@ namespace OpenTK.Graphics.ES30 { const Int32 n = 1; Int32 retval; - Int32* buffers = &retval; - Delegates.glGenBuffers((Int32)n, (UInt32*)buffers); + Int32* buffers_ptr = &retval; + Delegates.glGenBuffers((Int32)n, (UInt32*)buffers_ptr); return retval; } #if DEBUG @@ -10259,8 +10779,8 @@ namespace OpenTK.Graphics.ES30 { const Int32 n = 1; Int32 retval; - Int32* framebuffers = &retval; - Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers); + Int32* framebuffers_ptr = &retval; + Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); return retval; } #if DEBUG @@ -10485,8 +11005,8 @@ namespace OpenTK.Graphics.ES30 { const Int32 n = 1; Int32 retval; - Int32* ids = &retval; - Delegates.glGenQueries((Int32)n, (UInt32*)ids); + Int32* ids_ptr = &retval; + Delegates.glGenQueries((Int32)n, (UInt32*)ids_ptr); return retval; } #if DEBUG @@ -10711,8 +11231,8 @@ namespace OpenTK.Graphics.ES30 { const Int32 n = 1; Int32 retval; - Int32* renderbuffers = &retval; - Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers); + Int32* renderbuffers_ptr = &retval; + Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); return retval; } #if DEBUG @@ -10937,8 +11457,8 @@ namespace OpenTK.Graphics.ES30 { const Int32 count = 1; Int32 retval; - Int32* samplers = &retval; - Delegates.glGenSamplers((Int32)count, (UInt32*)samplers); + Int32* samplers_ptr = &retval; + Delegates.glGenSamplers((Int32)count, (UInt32*)samplers_ptr); return retval; } #if DEBUG @@ -11163,8 +11683,8 @@ namespace OpenTK.Graphics.ES30 { const Int32 n = 1; Int32 retval; - Int32* textures = &retval; - Delegates.glGenTextures((Int32)n, (UInt32*)textures); + Int32* textures_ptr = &retval; + Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); return retval; } #if DEBUG @@ -11389,8 +11909,8 @@ namespace OpenTK.Graphics.ES30 { const Int32 n = 1; Int32 retval; - Int32* ids = &retval; - Delegates.glGenTransformFeedbacks((Int32)n, (UInt32*)ids); + Int32* ids_ptr = &retval; + Delegates.glGenTransformFeedbacks((Int32)n, (UInt32*)ids_ptr); return retval; } #if DEBUG @@ -11615,8 +12135,8 @@ namespace OpenTK.Graphics.ES30 { const Int32 n = 1; Int32 retval; - Int32* arrays = &retval; - Delegates.glGenVertexArrays((Int32)n, (UInt32*)arrays); + Int32* arrays_ptr = &retval; + Delegates.glGenVertexArrays((Int32)n, (UInt32*)arrays_ptr); return retval; } #if DEBUG @@ -13332,8 +13852,8 @@ namespace OpenTK.Graphics.ES30 unsafe { bool retval; - bool* data = &retval; - Delegates.glGetBooleanv((OpenTK.Graphics.ES30.GetPName)pname, (bool*)data); + bool* data_ptr = &retval; + Delegates.glGetBooleanv((OpenTK.Graphics.ES30.GetPName)pname, (bool*)data_ptr); return retval; } #if DEBUG @@ -14237,8 +14757,8 @@ namespace OpenTK.Graphics.ES30 unsafe { Single retval; - Single* data = &retval; - Delegates.glGetFloatv((OpenTK.Graphics.ES30.GetPName)pname, (Single*)data); + Single* data_ptr = &retval; + Delegates.glGetFloatv((OpenTK.Graphics.ES30.GetPName)pname, (Single*)data_ptr); return retval; } #if DEBUG @@ -14617,8 +15137,8 @@ namespace OpenTK.Graphics.ES30 unsafe { Int64 retval; - Int64* data = &retval; - Delegates.glGetInteger64v((OpenTK.Graphics.ES30.GetPName)pname, (Int64*)data); + Int64* data_ptr = &retval; + Delegates.glGetInteger64v((OpenTK.Graphics.ES30.GetPName)pname, (Int64*)data_ptr); return retval; } #if DEBUG @@ -14817,8 +15337,8 @@ namespace OpenTK.Graphics.ES30 unsafe { Int32 retval; - Int32* data = &retval; - Delegates.glGetIntegerv((OpenTK.Graphics.ES30.GetPName)pname, (Int32*)data); + Int32* data_ptr = &retval; + Delegates.glGetIntegerv((OpenTK.Graphics.ES30.GetPName)pname, (Int32*)data_ptr); return retval; } #if DEBUG diff --git a/Source/OpenTK/Graphics/ES30/Helper.cs b/Source/OpenTK/Graphics/ES30/Helper.cs index 7b0ab0b3..07730e37 100644 --- a/Source/OpenTK/Graphics/ES30/Helper.cs +++ b/Source/OpenTK/Graphics/ES30/Helper.cs @@ -353,15 +353,6 @@ namespace OpenTK.Graphics.ES30 #endregion - #region public static void DeleteTexture(int id) - - public static void DeleteTexture(int id) - { - DeleteTextures(1, ref id); - } - - #endregion - #region Get[Float|Double] public static void GetFloat(GetPName pname, out Vector2 vector) diff --git a/Source/OpenTK/Graphics/OpenGL/GL.cs b/Source/OpenTK/Graphics/OpenGL/GL.cs index 7153f1fc..e1596382 100644 --- a/Source/OpenTK/Graphics/OpenGL/GL.cs +++ b/Source/OpenTK/Graphics/OpenGL/GL.cs @@ -51201,6 +51201,71 @@ namespace OpenTK.Graphics.OpenGL #endif } + /// [requires: v1.5] + /// Delete named buffer objects + /// + /// + /// + /// Specifies the number of buffer objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of buffer objects to be deleted. + /// + /// + [AutoGenerated(Category = "VERSION_1_5", Version = "1.5", EntryPoint = "glDeleteBuffers")] + public static + void DeleteBuffer(Int32 buffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* buffers_ptr = (UInt32*)&buffers; + Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v1.5] + /// Delete named buffer objects + /// + /// + /// + /// Specifies the number of buffer objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of buffer objects to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "VERSION_1_5", Version = "1.5", EntryPoint = "glDeleteBuffers")] + public static + void DeleteBuffer(UInt32 buffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* buffers_ptr = (UInt32*)&buffers; + Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v1.5] /// Delete named buffer objects /// @@ -51391,6 +51456,71 @@ namespace OpenTK.Graphics.OpenGL #endif } + /// [requires: v3.0 and ARB_framebuffer_object|VERSION_3_0] + /// Delete framebuffer objects + /// + /// + /// + /// Specifies the number of framebuffer objects to be deleted. + /// + /// + /// + /// + /// A pointer to an array containing n framebuffer objects to be deleted. + /// + /// + [AutoGenerated(Category = "ARB_framebuffer_object|VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteFramebuffers")] + public static + void DeleteFramebuffer(Int32 framebuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* framebuffers_ptr = (UInt32*)&framebuffers; + Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v3.0 and ARB_framebuffer_object|VERSION_3_0] + /// Delete framebuffer objects + /// + /// + /// + /// Specifies the number of framebuffer objects to be deleted. + /// + /// + /// + /// + /// A pointer to an array containing n framebuffer objects to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "ARB_framebuffer_object|VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteFramebuffers")] + public static + void DeleteFramebuffer(UInt32 framebuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* framebuffers_ptr = (UInt32*)&framebuffers; + Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v3.0 and ARB_framebuffer_object|VERSION_3_0] /// Delete framebuffer objects /// @@ -51681,6 +51811,71 @@ namespace OpenTK.Graphics.OpenGL #endif } + /// [requires: v4.1 and ARB_separate_shader_objects|VERSION_4_1] + /// Delete program pipeline objects + /// + /// + /// + /// Specifies the number of program pipeline objects to delete. + /// + /// + /// + /// + /// Specifies an array of names of program pipeline objects to delete. + /// + /// + [AutoGenerated(Category = "ARB_separate_shader_objects|VERSION_4_1", Version = "4.1", EntryPoint = "glDeleteProgramPipelines")] + public static + void DeleteProgramPipeline(Int32 pipelines) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* pipelines_ptr = (UInt32*)&pipelines; + Delegates.glDeleteProgramPipelines((Int32)n, (UInt32*)pipelines_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v4.1 and ARB_separate_shader_objects|VERSION_4_1] + /// Delete program pipeline objects + /// + /// + /// + /// Specifies the number of program pipeline objects to delete. + /// + /// + /// + /// + /// Specifies an array of names of program pipeline objects to delete. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "ARB_separate_shader_objects|VERSION_4_1", Version = "4.1", EntryPoint = "glDeleteProgramPipelines")] + public static + void DeleteProgramPipeline(UInt32 pipelines) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* pipelines_ptr = (UInt32*)&pipelines; + Delegates.glDeleteProgramPipelines((Int32)n, (UInt32*)pipelines_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v4.1 and ARB_separate_shader_objects|VERSION_4_1] /// Delete program pipeline objects /// @@ -51871,6 +52066,71 @@ namespace OpenTK.Graphics.OpenGL #endif } + /// [requires: v1.5] + /// Delete named query objects + /// + /// + /// + /// Specifies the number of query objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of query objects to be deleted. + /// + /// + [AutoGenerated(Category = "VERSION_1_5", Version = "1.5", EntryPoint = "glDeleteQueries")] + public static + void DeleteQuery(Int32 ids) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* ids_ptr = (UInt32*)&ids; + Delegates.glDeleteQueries((Int32)n, (UInt32*)ids_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v1.5] + /// Delete named query objects + /// + /// + /// + /// Specifies the number of query objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of query objects to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "VERSION_1_5", Version = "1.5", EntryPoint = "glDeleteQueries")] + public static + void DeleteQuery(UInt32 ids) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* ids_ptr = (UInt32*)&ids; + Delegates.glDeleteQueries((Int32)n, (UInt32*)ids_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v1.5] /// Delete named query objects /// @@ -52061,6 +52321,71 @@ namespace OpenTK.Graphics.OpenGL #endif } + /// [requires: v3.0 and ARB_framebuffer_object|VERSION_3_0] + /// Delete renderbuffer objects + /// + /// + /// + /// Specifies the number of renderbuffer objects to be deleted. + /// + /// + /// + /// + /// A pointer to an array containing n renderbuffer objects to be deleted. + /// + /// + [AutoGenerated(Category = "ARB_framebuffer_object|VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteRenderbuffers")] + public static + void DeleteRenderbuffer(Int32 renderbuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* renderbuffers_ptr = (UInt32*)&renderbuffers; + Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v3.0 and ARB_framebuffer_object|VERSION_3_0] + /// Delete renderbuffer objects + /// + /// + /// + /// Specifies the number of renderbuffer objects to be deleted. + /// + /// + /// + /// + /// A pointer to an array containing n renderbuffer objects to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "ARB_framebuffer_object|VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteRenderbuffers")] + public static + void DeleteRenderbuffer(UInt32 renderbuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* renderbuffers_ptr = (UInt32*)&renderbuffers; + Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v3.0 and ARB_framebuffer_object|VERSION_3_0] /// Delete renderbuffer objects /// @@ -52251,6 +52576,71 @@ namespace OpenTK.Graphics.OpenGL #endif } + /// [requires: v3.3 and ARB_sampler_objects|VERSION_3_3] + /// Delete named sampler objects + /// + /// + /// + /// Specifies the number of sampler objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of sampler objects to be deleted. + /// + /// + [AutoGenerated(Category = "ARB_sampler_objects|VERSION_3_3", Version = "3.3", EntryPoint = "glDeleteSamplers")] + public static + void DeleteSampler(Int32 samplers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 count = 1; + UInt32* samplers_ptr = (UInt32*)&samplers; + Delegates.glDeleteSamplers((Int32)count, (UInt32*)samplers_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v3.3 and ARB_sampler_objects|VERSION_3_3] + /// Delete named sampler objects + /// + /// + /// + /// Specifies the number of sampler objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of sampler objects to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "ARB_sampler_objects|VERSION_3_3", Version = "3.3", EntryPoint = "glDeleteSamplers")] + public static + void DeleteSampler(UInt32 samplers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 count = 1; + UInt32* samplers_ptr = (UInt32*)&samplers; + Delegates.glDeleteSamplers((Int32)count, (UInt32*)samplers_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v3.3 and ARB_sampler_objects|VERSION_3_3] /// Delete named sampler objects /// @@ -52508,6 +52898,71 @@ namespace OpenTK.Graphics.OpenGL #endif } + /// [requires: v1.1] + /// Delete named textures + /// + /// + /// + /// Specifies the number of textures to be deleted. + /// + /// + /// + /// + /// Specifies an array of textures to be deleted. + /// + /// + [AutoGenerated(Category = "VERSION_1_1", Version = "1.1", EntryPoint = "glDeleteTextures")] + public static + void DeleteTexture(Int32 textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* textures_ptr = (UInt32*)&textures; + Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v1.1] + /// Delete named textures + /// + /// + /// + /// Specifies the number of textures to be deleted. + /// + /// + /// + /// + /// Specifies an array of textures to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "VERSION_1_1", Version = "1.1", EntryPoint = "glDeleteTextures")] + public static + void DeleteTexture(UInt32 textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* textures_ptr = (UInt32*)&textures; + Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v1.1] /// Delete named textures /// @@ -52698,6 +53153,71 @@ namespace OpenTK.Graphics.OpenGL #endif } + /// [requires: v4.0 and ARB_transform_feedback2|VERSION_4_0] + /// Delete transform feedback objects + /// + /// + /// + /// Specifies the number of transform feedback objects to delete. + /// + /// + /// + /// + /// Specifies an array of names of transform feedback objects to delete. + /// + /// + [AutoGenerated(Category = "ARB_transform_feedback2|VERSION_4_0", Version = "4.0", EntryPoint = "glDeleteTransformFeedbacks")] + public static + void DeleteTransformFeedback(Int32 ids) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* ids_ptr = (UInt32*)&ids; + Delegates.glDeleteTransformFeedbacks((Int32)n, (UInt32*)ids_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v4.0 and ARB_transform_feedback2|VERSION_4_0] + /// Delete transform feedback objects + /// + /// + /// + /// Specifies the number of transform feedback objects to delete. + /// + /// + /// + /// + /// Specifies an array of names of transform feedback objects to delete. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "ARB_transform_feedback2|VERSION_4_0", Version = "4.0", EntryPoint = "glDeleteTransformFeedbacks")] + public static + void DeleteTransformFeedback(UInt32 ids) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* ids_ptr = (UInt32*)&ids; + Delegates.glDeleteTransformFeedbacks((Int32)n, (UInt32*)ids_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v4.0 and ARB_transform_feedback2|VERSION_4_0] /// Delete transform feedback objects /// @@ -52888,6 +53408,71 @@ namespace OpenTK.Graphics.OpenGL #endif } + /// [requires: v3.0 and ARB_vertex_array_object|VERSION_3_0] + /// Delete vertex array objects + /// + /// + /// + /// Specifies the number of vertex array objects to be deleted. + /// + /// + /// + /// + /// Specifies the address of an array containing the n names of the objects to be deleted. + /// + /// + [AutoGenerated(Category = "ARB_vertex_array_object|VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteVertexArrays")] + public static + void DeleteVertexArray(Int32 arrays) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* arrays_ptr = (UInt32*)&arrays; + Delegates.glDeleteVertexArrays((Int32)n, (UInt32*)arrays_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v3.0 and ARB_vertex_array_object|VERSION_3_0] + /// Delete vertex array objects + /// + /// + /// + /// Specifies the number of vertex array objects to be deleted. + /// + /// + /// + /// + /// Specifies the address of an array containing the n names of the objects to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "ARB_vertex_array_object|VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteVertexArrays")] + public static + void DeleteVertexArray(UInt32 arrays) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* arrays_ptr = (UInt32*)&arrays; + Delegates.glDeleteVertexArrays((Int32)n, (UInt32*)arrays_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v3.0 and ARB_vertex_array_object|VERSION_3_0] /// Delete vertex array objects /// @@ -62344,8 +62929,8 @@ namespace OpenTK.Graphics.OpenGL { const Int32 n = 1; Int32 retval; - Int32* buffers = &retval; - Delegates.glGenBuffers((Int32)n, (UInt32*)buffers); + Int32* buffers_ptr = &retval; + Delegates.glGenBuffers((Int32)n, (UInt32*)buffers_ptr); return retval; } #if DEBUG @@ -62592,8 +63177,8 @@ namespace OpenTK.Graphics.OpenGL { const Int32 n = 1; Int32 retval; - Int32* framebuffers = &retval; - Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers); + Int32* framebuffers_ptr = &retval; + Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); return retval; } #if DEBUG @@ -62840,8 +63425,8 @@ namespace OpenTK.Graphics.OpenGL { const Int32 n = 1; Int32 retval; - Int32* pipelines = &retval; - Delegates.glGenProgramPipelines((Int32)n, (UInt32*)pipelines); + Int32* pipelines_ptr = &retval; + Delegates.glGenProgramPipelines((Int32)n, (UInt32*)pipelines_ptr); return retval; } #if DEBUG @@ -63066,8 +63651,8 @@ namespace OpenTK.Graphics.OpenGL { const Int32 n = 1; Int32 retval; - Int32* ids = &retval; - Delegates.glGenQueries((Int32)n, (UInt32*)ids); + Int32* ids_ptr = &retval; + Delegates.glGenQueries((Int32)n, (UInt32*)ids_ptr); return retval; } #if DEBUG @@ -63292,8 +63877,8 @@ namespace OpenTK.Graphics.OpenGL { const Int32 n = 1; Int32 retval; - Int32* renderbuffers = &retval; - Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers); + Int32* renderbuffers_ptr = &retval; + Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); return retval; } #if DEBUG @@ -63518,8 +64103,8 @@ namespace OpenTK.Graphics.OpenGL { const Int32 count = 1; Int32 retval; - Int32* samplers = &retval; - Delegates.glGenSamplers((Int32)count, (UInt32*)samplers); + Int32* samplers_ptr = &retval; + Delegates.glGenSamplers((Int32)count, (UInt32*)samplers_ptr); return retval; } #if DEBUG @@ -63744,8 +64329,8 @@ namespace OpenTK.Graphics.OpenGL { const Int32 n = 1; Int32 retval; - Int32* textures = &retval; - Delegates.glGenTextures((Int32)n, (UInt32*)textures); + Int32* textures_ptr = &retval; + Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); return retval; } #if DEBUG @@ -63970,8 +64555,8 @@ namespace OpenTK.Graphics.OpenGL { const Int32 n = 1; Int32 retval; - Int32* ids = &retval; - Delegates.glGenTransformFeedbacks((Int32)n, (UInt32*)ids); + Int32* ids_ptr = &retval; + Delegates.glGenTransformFeedbacks((Int32)n, (UInt32*)ids_ptr); return retval; } #if DEBUG @@ -64196,8 +64781,8 @@ namespace OpenTK.Graphics.OpenGL { const Int32 n = 1; Int32 retval; - Int32* arrays = &retval; - Delegates.glGenVertexArrays((Int32)n, (UInt32*)arrays); + Int32* arrays_ptr = &retval; + Delegates.glGenVertexArrays((Int32)n, (UInt32*)arrays_ptr); return retval; } #if DEBUG @@ -67162,8 +67747,8 @@ namespace OpenTK.Graphics.OpenGL unsafe { bool retval; - bool* data = &retval; - Delegates.glGetBooleanv((OpenTK.Graphics.OpenGL.GetPName)pname, (bool*)data); + bool* data_ptr = &retval; + Delegates.glGetBooleanv((OpenTK.Graphics.OpenGL.GetPName)pname, (bool*)data_ptr); return retval; } #if DEBUG @@ -69575,8 +70160,8 @@ namespace OpenTK.Graphics.OpenGL unsafe { Double retval; - Double* data = &retval; - Delegates.glGetDoublev((OpenTK.Graphics.OpenGL.GetPName)pname, (Double*)data); + Double* data_ptr = &retval; + Delegates.glGetDoublev((OpenTK.Graphics.OpenGL.GetPName)pname, (Double*)data_ptr); return retval; } #if DEBUG @@ -69785,8 +70370,8 @@ namespace OpenTK.Graphics.OpenGL unsafe { Single retval; - Single* data = &retval; - Delegates.glGetFloatv((OpenTK.Graphics.OpenGL.GetPName)pname, (Single*)data); + Single* data_ptr = &retval; + Delegates.glGetFloatv((OpenTK.Graphics.OpenGL.GetPName)pname, (Single*)data_ptr); return retval; } #if DEBUG @@ -70797,8 +71382,8 @@ namespace OpenTK.Graphics.OpenGL unsafe { Int64 retval; - Int64* data = &retval; - Delegates.glGetInteger64v((OpenTK.Graphics.OpenGL.All)pname, (Int64*)data); + Int64* data_ptr = &retval; + Delegates.glGetInteger64v((OpenTK.Graphics.OpenGL.All)pname, (Int64*)data_ptr); return retval; } #if DEBUG @@ -70997,8 +71582,8 @@ namespace OpenTK.Graphics.OpenGL unsafe { Int32 retval; - Int32* data = &retval; - Delegates.glGetIntegerv((OpenTK.Graphics.OpenGL.GetPName)pname, (Int32*)data); + Int32* data_ptr = &retval; + Delegates.glGetIntegerv((OpenTK.Graphics.OpenGL.GetPName)pname, (Int32*)data_ptr); return retval; } #if DEBUG @@ -73765,8 +74350,8 @@ namespace OpenTK.Graphics.OpenGL unsafe { Single retval; - Single* values = &retval; - Delegates.glGetPixelMapfv((OpenTK.Graphics.OpenGL.PixelMap)map, (Single*)values); + Single* values_ptr = &retval; + Delegates.glGetPixelMapfv((OpenTK.Graphics.OpenGL.PixelMap)map, (Single*)values_ptr); return retval; } #if DEBUG diff --git a/Source/OpenTK/Graphics/OpenGL/GLHelper.cs b/Source/OpenTK/Graphics/OpenGL/GLHelper.cs index 84a9c101..e59732ee 100644 --- a/Source/OpenTK/Graphics/OpenGL/GLHelper.cs +++ b/Source/OpenTK/Graphics/OpenGL/GLHelper.cs @@ -934,190 +934,6 @@ namespace OpenTK.Graphics.OpenGL #endregion - #region DeleteBuffer - - /// [requires: v1.5] - /// Deletes a single buffer object - /// - /// The buffer object to be deleted - public static void DeleteBuffer(int id) - { - DeleteBuffers(1, ref id); - } - - /// [requires: v1.5] - /// Deletes a single buffer object - /// - /// The buffer object to be deleted - [CLSCompliant(false)] - public static void DeleteBuffer(uint id) - { - DeleteBuffers(1, ref id); - } - - #endregion - - #region DeleteFramebuffer - - /// [requires: v3.0 and ARB_framebuffer_object] - /// Deletes a single framebuffer object - /// - /// The framebuffer object to be deleted - public static void DeleteFramebuffer(int id) - { - DeleteFramebuffers(1, ref id); - } - - /// [requires: v3.0 and ARB_framebuffer_object] - /// Deletes a single framebuffer object - /// - /// The framebuffer object to be deleted - [CLSCompliant(false)] - public static void DeleteFramebuffer(uint id) - { - DeleteFramebuffers(1, ref id); - } - - #endregion - - #region DeleteProgramPipeline - - /// [requires: v4.1 and ARB_separate_shader_objects] - /// Deletes a single program pipeline object - /// - /// The program pipeline object to be deleted - public static void DeleteProgramPipeline(int id) - { - DeleteProgramPipelines(1, ref id); - } - - /// [requires: v4.1 and ARB_separate_shader_objects] - /// Deletes a single program pipeline object - /// - /// The program pipeline object to be deleted - [CLSCompliant(false)] - public static void DeleteProgramPipeline(uint id) - { - DeleteProgramPipelines(1, ref id); - } - - #endregion - - #region DeleteRenderbuffer - - /// [requires: v3.0 and ARB_framebuffer_object] - /// Deletes a single renderbuffer object - /// - /// The renderbuffer object to be deleted - public static void DeleteRenderbuffer(int id) - { - DeleteRenderbuffers(1, ref id); - } - - /// [requires: v3.0 and ARB_framebuffer_object] - /// Deletes a single renderbuffer object - /// - /// The renderbuffer object to be deleted - [CLSCompliant(false)] - public static void DeleteRenderbuffer(uint id) - { - DeleteRenderbuffers(1, ref id); - } - - #endregion - - #region DeleteSampler - - /// - /// Deletes a single sampler object - /// - /// The sampler object to be deleted - public static void DeleteSampler(int id) - { - DeleteSamplers(1, ref id); - } - - /// - /// Deletes a single sampler object - /// - /// The sampler object to be deleted - [CLSCompliant(false)] - public static void DeleteSampler(uint id) - { - DeleteSamplers(1, ref id); - } - - #endregion - - #region DeleteTexture - - /// [requires: v1.1] - /// Delete a single texture name - /// - /// The texture to be deleted - public static void DeleteTexture(int id) - { - DeleteTextures(1, ref id); - } - - /// [requires: v1.1] - /// Delete a single texture name - /// - /// The texture to be deleted - [CLSCompliant(false)] - public static void DeleteTexture(uint id) - { - DeleteTextures(1, ref id); - } - - #endregion - - #region DeleteTransformFeedback - - /// [requires: v1.2 and ARB_transform_feedback2] - /// Deletes a single transform feedback object - /// - /// The transform feedback object to be deleted - public static void DeleteTransformFeedback(int id) - { - DeleteTransformFeedbacks(1, ref id); - } - - /// [requires: v1.2 and ARB_transform_feedback2] - /// Deletes a single transform feedback object - /// - /// The transform feedback object to be deleted - [CLSCompliant(false)] - public static void DeleteTransformFeedback(uint id) - { - DeleteTransformFeedbacks(1, ref id); - } - - #endregion - - #region DeleteVertexArray - - /// [requires: v3.0 and ARB_vertex_array_object] - /// Deletes a single vertex array object - /// - /// The vertex array object to be deleted - public static void DeleteVertexArray(int id) - { - DeleteVertexArrays(1, ref id); - } - - /// [requires: v3.0 and ARB_vertex_array_object] - /// Deletes a single vertex array object - /// - /// The vertex array object to be deleted - [CLSCompliant(false)] - public static void DeleteVertexArray(uint id) - { - DeleteVertexArrays(1, ref id); - } - - #endregion - #region [Vertex|Normal|Index|Color|FogCoord|VertexAttrib]Pointer public static void VertexPointer(int size, VertexPointerType type, int stride, int offset) diff --git a/Source/OpenTK/Graphics/OpenGL4/GL4.cs b/Source/OpenTK/Graphics/OpenGL4/GL4.cs index 2fa1d5ab..92741ce5 100644 --- a/Source/OpenTK/Graphics/OpenGL4/GL4.cs +++ b/Source/OpenTK/Graphics/OpenGL4/GL4.cs @@ -16076,6 +16076,71 @@ namespace OpenTK.Graphics.OpenGL4 #endif } + /// [requires: v1.5] + /// Delete named buffer objects + /// + /// + /// + /// Specifies the number of buffer objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of buffer objects to be deleted. + /// + /// + [AutoGenerated(Category = "VERSION_1_5", Version = "1.5", EntryPoint = "glDeleteBuffers")] + public static + void DeleteBuffer(Int32 buffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* buffers_ptr = (UInt32*)&buffers; + Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v1.5] + /// Delete named buffer objects + /// + /// + /// + /// Specifies the number of buffer objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of buffer objects to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "VERSION_1_5", Version = "1.5", EntryPoint = "glDeleteBuffers")] + public static + void DeleteBuffer(UInt32 buffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* buffers_ptr = (UInt32*)&buffers; + Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v1.5] /// Delete named buffer objects /// @@ -16266,6 +16331,71 @@ namespace OpenTK.Graphics.OpenGL4 #endif } + /// [requires: v3.0 and ARB_framebuffer_object|VERSION_3_0] + /// Delete framebuffer objects + /// + /// + /// + /// Specifies the number of framebuffer objects to be deleted. + /// + /// + /// + /// + /// A pointer to an array containing n framebuffer objects to be deleted. + /// + /// + [AutoGenerated(Category = "ARB_framebuffer_object|VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteFramebuffers")] + public static + void DeleteFramebuffer(Int32 framebuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* framebuffers_ptr = (UInt32*)&framebuffers; + Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v3.0 and ARB_framebuffer_object|VERSION_3_0] + /// Delete framebuffer objects + /// + /// + /// + /// Specifies the number of framebuffer objects to be deleted. + /// + /// + /// + /// + /// A pointer to an array containing n framebuffer objects to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "ARB_framebuffer_object|VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteFramebuffers")] + public static + void DeleteFramebuffer(UInt32 framebuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* framebuffers_ptr = (UInt32*)&framebuffers; + Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v3.0 and ARB_framebuffer_object|VERSION_3_0] /// Delete framebuffer objects /// @@ -16501,6 +16631,71 @@ namespace OpenTK.Graphics.OpenGL4 #endif } + /// [requires: v4.1 and ARB_separate_shader_objects|VERSION_4_1] + /// Delete program pipeline objects + /// + /// + /// + /// Specifies the number of program pipeline objects to delete. + /// + /// + /// + /// + /// Specifies an array of names of program pipeline objects to delete. + /// + /// + [AutoGenerated(Category = "ARB_separate_shader_objects|VERSION_4_1", Version = "4.1", EntryPoint = "glDeleteProgramPipelines")] + public static + void DeleteProgramPipeline(Int32 pipelines) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* pipelines_ptr = (UInt32*)&pipelines; + Delegates.glDeleteProgramPipelines((Int32)n, (UInt32*)pipelines_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v4.1 and ARB_separate_shader_objects|VERSION_4_1] + /// Delete program pipeline objects + /// + /// + /// + /// Specifies the number of program pipeline objects to delete. + /// + /// + /// + /// + /// Specifies an array of names of program pipeline objects to delete. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "ARB_separate_shader_objects|VERSION_4_1", Version = "4.1", EntryPoint = "glDeleteProgramPipelines")] + public static + void DeleteProgramPipeline(UInt32 pipelines) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* pipelines_ptr = (UInt32*)&pipelines; + Delegates.glDeleteProgramPipelines((Int32)n, (UInt32*)pipelines_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v4.1 and ARB_separate_shader_objects|VERSION_4_1] /// Delete program pipeline objects /// @@ -16691,6 +16886,71 @@ namespace OpenTK.Graphics.OpenGL4 #endif } + /// [requires: v1.5] + /// Delete named query objects + /// + /// + /// + /// Specifies the number of query objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of query objects to be deleted. + /// + /// + [AutoGenerated(Category = "VERSION_1_5", Version = "1.5", EntryPoint = "glDeleteQueries")] + public static + void DeleteQuery(Int32 ids) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* ids_ptr = (UInt32*)&ids; + Delegates.glDeleteQueries((Int32)n, (UInt32*)ids_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v1.5] + /// Delete named query objects + /// + /// + /// + /// Specifies the number of query objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of query objects to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "VERSION_1_5", Version = "1.5", EntryPoint = "glDeleteQueries")] + public static + void DeleteQuery(UInt32 ids) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* ids_ptr = (UInt32*)&ids; + Delegates.glDeleteQueries((Int32)n, (UInt32*)ids_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v1.5] /// Delete named query objects /// @@ -16881,6 +17141,71 @@ namespace OpenTK.Graphics.OpenGL4 #endif } + /// [requires: v3.0 and ARB_framebuffer_object|VERSION_3_0] + /// Delete renderbuffer objects + /// + /// + /// + /// Specifies the number of renderbuffer objects to be deleted. + /// + /// + /// + /// + /// A pointer to an array containing n renderbuffer objects to be deleted. + /// + /// + [AutoGenerated(Category = "ARB_framebuffer_object|VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteRenderbuffers")] + public static + void DeleteRenderbuffer(Int32 renderbuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* renderbuffers_ptr = (UInt32*)&renderbuffers; + Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v3.0 and ARB_framebuffer_object|VERSION_3_0] + /// Delete renderbuffer objects + /// + /// + /// + /// Specifies the number of renderbuffer objects to be deleted. + /// + /// + /// + /// + /// A pointer to an array containing n renderbuffer objects to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "ARB_framebuffer_object|VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteRenderbuffers")] + public static + void DeleteRenderbuffer(UInt32 renderbuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* renderbuffers_ptr = (UInt32*)&renderbuffers; + Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v3.0 and ARB_framebuffer_object|VERSION_3_0] /// Delete renderbuffer objects /// @@ -17071,6 +17396,71 @@ namespace OpenTK.Graphics.OpenGL4 #endif } + /// [requires: v3.3 and ARB_sampler_objects|VERSION_3_3] + /// Delete named sampler objects + /// + /// + /// + /// Specifies the number of sampler objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of sampler objects to be deleted. + /// + /// + [AutoGenerated(Category = "ARB_sampler_objects|VERSION_3_3", Version = "3.3", EntryPoint = "glDeleteSamplers")] + public static + void DeleteSampler(Int32 samplers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 count = 1; + UInt32* samplers_ptr = (UInt32*)&samplers; + Delegates.glDeleteSamplers((Int32)count, (UInt32*)samplers_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v3.3 and ARB_sampler_objects|VERSION_3_3] + /// Delete named sampler objects + /// + /// + /// + /// Specifies the number of sampler objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of sampler objects to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "ARB_sampler_objects|VERSION_3_3", Version = "3.3", EntryPoint = "glDeleteSamplers")] + public static + void DeleteSampler(UInt32 samplers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 count = 1; + UInt32* samplers_ptr = (UInt32*)&samplers; + Delegates.glDeleteSamplers((Int32)count, (UInt32*)samplers_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v3.3 and ARB_sampler_objects|VERSION_3_3] /// Delete named sampler objects /// @@ -17328,6 +17718,71 @@ namespace OpenTK.Graphics.OpenGL4 #endif } + /// [requires: v1.1] + /// Delete named textures + /// + /// + /// + /// Specifies the number of textures to be deleted. + /// + /// + /// + /// + /// Specifies an array of textures to be deleted. + /// + /// + [AutoGenerated(Category = "VERSION_1_1", Version = "1.1", EntryPoint = "glDeleteTextures")] + public static + void DeleteTexture(Int32 textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* textures_ptr = (UInt32*)&textures; + Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v1.1] + /// Delete named textures + /// + /// + /// + /// Specifies the number of textures to be deleted. + /// + /// + /// + /// + /// Specifies an array of textures to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "VERSION_1_1", Version = "1.1", EntryPoint = "glDeleteTextures")] + public static + void DeleteTexture(UInt32 textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* textures_ptr = (UInt32*)&textures; + Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v1.1] /// Delete named textures /// @@ -17518,6 +17973,71 @@ namespace OpenTK.Graphics.OpenGL4 #endif } + /// [requires: v4.0 and ARB_transform_feedback2|VERSION_4_0] + /// Delete transform feedback objects + /// + /// + /// + /// Specifies the number of transform feedback objects to delete. + /// + /// + /// + /// + /// Specifies an array of names of transform feedback objects to delete. + /// + /// + [AutoGenerated(Category = "ARB_transform_feedback2|VERSION_4_0", Version = "4.0", EntryPoint = "glDeleteTransformFeedbacks")] + public static + void DeleteTransformFeedback(Int32 ids) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* ids_ptr = (UInt32*)&ids; + Delegates.glDeleteTransformFeedbacks((Int32)n, (UInt32*)ids_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v4.0 and ARB_transform_feedback2|VERSION_4_0] + /// Delete transform feedback objects + /// + /// + /// + /// Specifies the number of transform feedback objects to delete. + /// + /// + /// + /// + /// Specifies an array of names of transform feedback objects to delete. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "ARB_transform_feedback2|VERSION_4_0", Version = "4.0", EntryPoint = "glDeleteTransformFeedbacks")] + public static + void DeleteTransformFeedback(UInt32 ids) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* ids_ptr = (UInt32*)&ids; + Delegates.glDeleteTransformFeedbacks((Int32)n, (UInt32*)ids_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v4.0 and ARB_transform_feedback2|VERSION_4_0] /// Delete transform feedback objects /// @@ -17708,6 +18228,71 @@ namespace OpenTK.Graphics.OpenGL4 #endif } + /// [requires: v3.0 and ARB_vertex_array_object|VERSION_3_0] + /// Delete vertex array objects + /// + /// + /// + /// Specifies the number of vertex array objects to be deleted. + /// + /// + /// + /// + /// Specifies the address of an array containing the n names of the objects to be deleted. + /// + /// + [AutoGenerated(Category = "ARB_vertex_array_object|VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteVertexArrays")] + public static + void DeleteVertexArray(Int32 arrays) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* arrays_ptr = (UInt32*)&arrays; + Delegates.glDeleteVertexArrays((Int32)n, (UInt32*)arrays_ptr); + } + #if DEBUG + } + #endif + } + + /// [requires: v3.0 and ARB_vertex_array_object|VERSION_3_0] + /// Delete vertex array objects + /// + /// + /// + /// Specifies the number of vertex array objects to be deleted. + /// + /// + /// + /// + /// Specifies the address of an array containing the n names of the objects to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "ARB_vertex_array_object|VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteVertexArrays")] + public static + void DeleteVertexArray(UInt32 arrays) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + const Int32 n = 1; + UInt32* arrays_ptr = (UInt32*)&arrays; + Delegates.glDeleteVertexArrays((Int32)n, (UInt32*)arrays_ptr); + } + #if DEBUG + } + #endif + } + /// [requires: v3.0 and ARB_vertex_array_object|VERSION_3_0] /// Delete vertex array objects /// @@ -23396,8 +23981,8 @@ namespace OpenTK.Graphics.OpenGL4 { const Int32 n = 1; Int32 retval; - Int32* buffers = &retval; - Delegates.glGenBuffers((Int32)n, (UInt32*)buffers); + Int32* buffers_ptr = &retval; + Delegates.glGenBuffers((Int32)n, (UInt32*)buffers_ptr); return retval; } #if DEBUG @@ -23644,8 +24229,8 @@ namespace OpenTK.Graphics.OpenGL4 { const Int32 n = 1; Int32 retval; - Int32* framebuffers = &retval; - Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers); + Int32* framebuffers_ptr = &retval; + Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); return retval; } #if DEBUG @@ -23870,8 +24455,8 @@ namespace OpenTK.Graphics.OpenGL4 { const Int32 n = 1; Int32 retval; - Int32* pipelines = &retval; - Delegates.glGenProgramPipelines((Int32)n, (UInt32*)pipelines); + Int32* pipelines_ptr = &retval; + Delegates.glGenProgramPipelines((Int32)n, (UInt32*)pipelines_ptr); return retval; } #if DEBUG @@ -24096,8 +24681,8 @@ namespace OpenTK.Graphics.OpenGL4 { const Int32 n = 1; Int32 retval; - Int32* ids = &retval; - Delegates.glGenQueries((Int32)n, (UInt32*)ids); + Int32* ids_ptr = &retval; + Delegates.glGenQueries((Int32)n, (UInt32*)ids_ptr); return retval; } #if DEBUG @@ -24322,8 +24907,8 @@ namespace OpenTK.Graphics.OpenGL4 { const Int32 n = 1; Int32 retval; - Int32* renderbuffers = &retval; - Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers); + Int32* renderbuffers_ptr = &retval; + Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); return retval; } #if DEBUG @@ -24548,8 +25133,8 @@ namespace OpenTK.Graphics.OpenGL4 { const Int32 count = 1; Int32 retval; - Int32* samplers = &retval; - Delegates.glGenSamplers((Int32)count, (UInt32*)samplers); + Int32* samplers_ptr = &retval; + Delegates.glGenSamplers((Int32)count, (UInt32*)samplers_ptr); return retval; } #if DEBUG @@ -24774,8 +25359,8 @@ namespace OpenTK.Graphics.OpenGL4 { const Int32 n = 1; Int32 retval; - Int32* textures = &retval; - Delegates.glGenTextures((Int32)n, (UInt32*)textures); + Int32* textures_ptr = &retval; + Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); return retval; } #if DEBUG @@ -25000,8 +25585,8 @@ namespace OpenTK.Graphics.OpenGL4 { const Int32 n = 1; Int32 retval; - Int32* ids = &retval; - Delegates.glGenTransformFeedbacks((Int32)n, (UInt32*)ids); + Int32* ids_ptr = &retval; + Delegates.glGenTransformFeedbacks((Int32)n, (UInt32*)ids_ptr); return retval; } #if DEBUG @@ -25226,8 +25811,8 @@ namespace OpenTK.Graphics.OpenGL4 { const Int32 n = 1; Int32 retval; - Int32* arrays = &retval; - Delegates.glGenVertexArrays((Int32)n, (UInt32*)arrays); + Int32* arrays_ptr = &retval; + Delegates.glGenVertexArrays((Int32)n, (UInt32*)arrays_ptr); return retval; } #if DEBUG @@ -28192,8 +28777,8 @@ namespace OpenTK.Graphics.OpenGL4 unsafe { bool retval; - bool* data = &retval; - Delegates.glGetBooleanv((OpenTK.Graphics.OpenGL4.GetPName)pname, (bool*)data); + bool* data_ptr = &retval; + Delegates.glGetBooleanv((OpenTK.Graphics.OpenGL4.GetPName)pname, (bool*)data_ptr); return retval; } #if DEBUG @@ -30510,8 +31095,8 @@ namespace OpenTK.Graphics.OpenGL4 unsafe { Double retval; - Double* data = &retval; - Delegates.glGetDoublev((OpenTK.Graphics.OpenGL4.GetPName)pname, (Double*)data); + Double* data_ptr = &retval; + Delegates.glGetDoublev((OpenTK.Graphics.OpenGL4.GetPName)pname, (Double*)data_ptr); return retval; } #if DEBUG @@ -30720,8 +31305,8 @@ namespace OpenTK.Graphics.OpenGL4 unsafe { Single retval; - Single* data = &retval; - Delegates.glGetFloatv((OpenTK.Graphics.OpenGL4.GetPName)pname, (Single*)data); + Single* data_ptr = &retval; + Delegates.glGetFloatv((OpenTK.Graphics.OpenGL4.GetPName)pname, (Single*)data_ptr); return retval; } #if DEBUG @@ -31732,8 +32317,8 @@ namespace OpenTK.Graphics.OpenGL4 unsafe { Int64 retval; - Int64* data = &retval; - Delegates.glGetInteger64v((OpenTK.Graphics.OpenGL4.All)pname, (Int64*)data); + Int64* data_ptr = &retval; + Delegates.glGetInteger64v((OpenTK.Graphics.OpenGL4.All)pname, (Int64*)data_ptr); return retval; } #if DEBUG @@ -31932,8 +32517,8 @@ namespace OpenTK.Graphics.OpenGL4 unsafe { Int32 retval; - Int32* data = &retval; - Delegates.glGetIntegerv((OpenTK.Graphics.OpenGL4.GetPName)pname, (Int32*)data); + Int32* data_ptr = &retval; + Delegates.glGetIntegerv((OpenTK.Graphics.OpenGL4.GetPName)pname, (Int32*)data_ptr); return retval; } #if DEBUG diff --git a/Source/OpenTK/Graphics/OpenGL4/Helper.cs b/Source/OpenTK/Graphics/OpenGL4/Helper.cs index 43be2919..58925714 100644 --- a/Source/OpenTK/Graphics/OpenGL4/Helper.cs +++ b/Source/OpenTK/Graphics/OpenGL4/Helper.cs @@ -362,15 +362,6 @@ namespace OpenTK.Graphics.OpenGL4 #endregion - #region public static void DeleteTexture(int id) - - public static void DeleteTexture(int id) - { - DeleteTextures(1, ref id); - } - - #endregion - #region Get[Float|Double] public static void GetFloat(GetPName pname, out Vector2 vector)