Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated convenience overloads

  • Loading branch information...
commit c66b22a1f3384eae32b0c29a780fdc71496650d4 1 parent d0e025b
@thefiddler authored
View
154 Source/OpenTK/Graphics/ES11/ES11.cs
@@ -2631,6 +2631,71 @@ void CullFace(OpenTK.Graphics.ES11.CullFaceMode mode)
/// </param>
[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
+ }
+
+ /// <summary>[requires: v1.0]
+ /// Delete named buffer objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of buffer objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="buffers">
+ /// <para>
+ /// Specifies an array of buffer objects to be deleted.
+ /// </para>
+ /// </param>
+ [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
+ }
+
+ /// <summary>[requires: v1.0]
+ /// Delete named buffer objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of buffer objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="buffers">
+ /// <para>
+ /// Specifies an array of buffer objects to be deleted.
+ /// </para>
+ /// </param>
+ [AutoGenerated(Category = "VERSION_ES_CM_1_0", Version = "1.0", EntryPoint = "glDeleteBuffers")]
+ public static
void DeleteBuffers(Int32 n, Int32[] buffers)
{
#if DEBUG
@@ -2821,6 +2886,71 @@ unsafe void DeleteBuffers(Int32 n, UInt32* buffers)
/// </param>
[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
+ }
+
+ /// <summary>[requires: v1.0]
+ /// Delete named textures
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of textures to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="textures">
+ /// <para>
+ /// Specifies an array of textures to be deleted.
+ /// </para>
+ /// </param>
+ [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
+ }
+
+ /// <summary>[requires: v1.0]
+ /// Delete named textures
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of textures to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="textures">
+ /// <para>
+ /// Specifies an array of textures to be deleted.
+ /// </para>
+ /// </param>
+ [AutoGenerated(Category = "VERSION_ES_CM_1_0", Version = "1.0", EntryPoint = "glDeleteTextures")]
+ public static
void DeleteTextures(Int32 n, Int32[] textures)
{
#if DEBUG
@@ -3937,8 +4067,8 @@ Int32 GenBuffer()
{
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 @@ Int32 GenTexture()
{
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 @@ bool GetBoolean(OpenTK.Graphics.ES11.GetPName pname)
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 @@ int GetFixed(OpenTK.Graphics.ES11.All pname)
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 @@ Single GetFloat(OpenTK.Graphics.ES11.GetPName pname)
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 @@ Int32 GetInteger(OpenTK.Graphics.ES11.GetPName pname)
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
View
288 Source/OpenTK/Graphics/ES20/ES20.cs
@@ -5840,6 +5840,71 @@ void DebugMessageInsert(OpenTK.Graphics.ES20.DebugSourceExternal source, OpenTK.
/// </param>
[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
+ }
+
+ /// <summary>[requires: v2.0 and ES_VERSION_2_0]
+ /// Delete named buffer objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of buffer objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="buffers">
+ /// <para>
+ /// Specifies an array of buffer objects to be deleted.
+ /// </para>
+ /// </param>
+ [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
+ }
+
+ /// <summary>[requires: v2.0 and ES_VERSION_2_0]
+ /// Delete named buffer objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of buffer objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="buffers">
+ /// <para>
+ /// Specifies an array of buffer objects to be deleted.
+ /// </para>
+ /// </param>
+ [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glDeleteBuffers")]
+ public static
void DeleteBuffers(Int32 n, Int32[] buffers)
{
#if DEBUG
@@ -6030,6 +6095,71 @@ unsafe void DeleteBuffers(Int32 n, UInt32* buffers)
/// </param>
[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
+ }
+
+ /// <summary>[requires: v2.0 and ES_VERSION_2_0]
+ /// Delete framebuffer objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of framebuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="framebuffers">
+ /// <para>
+ /// A pointer to an array containing n framebuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ [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
+ }
+
+ /// <summary>[requires: v2.0 and ES_VERSION_2_0]
+ /// Delete framebuffer objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of framebuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="framebuffers">
+ /// <para>
+ /// A pointer to an array containing n framebuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glDeleteFramebuffers")]
+ public static
void DeleteFramebuffers(Int32 n, Int32[] framebuffers)
{
#if DEBUG
@@ -6265,6 +6395,71 @@ void DeleteProgram(UInt32 program)
/// </param>
[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
+ }
+
+ /// <summary>[requires: v2.0 and ES_VERSION_2_0]
+ /// Delete renderbuffer objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of renderbuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="renderbuffers">
+ /// <para>
+ /// A pointer to an array containing n renderbuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ [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
+ }
+
+ /// <summary>[requires: v2.0 and ES_VERSION_2_0]
+ /// Delete renderbuffer objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of renderbuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="renderbuffers">
+ /// <para>
+ /// A pointer to an array containing n renderbuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glDeleteRenderbuffers")]
+ public static
void DeleteRenderbuffers(Int32 n, Int32[] renderbuffers)
{
#if DEBUG
@@ -6500,6 +6695,71 @@ void DeleteShader(UInt32 shader)
/// </param>
[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
+ }
+
+ /// <summary>[requires: v2.0 and ES_VERSION_2_0]
+ /// Delete named textures
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of textures to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="textures">
+ /// <para>
+ /// Specifies an array of textures to be deleted.
+ /// </para>
+ /// </param>
+ [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
+ }
+
+ /// <summary>[requires: v2.0 and ES_VERSION_2_0]
+ /// Delete named textures
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of textures to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="textures">
+ /// <para>
+ /// Specifies an array of textures to be deleted.
+ /// </para>
+ /// </param>
+ [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glDeleteTextures")]
+ public static
void DeleteTextures(Int32 n, Int32[] textures)
{
#if DEBUG
@@ -7614,8 +7874,8 @@ Int32 GenBuffer()
{
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 @@ Int32 GenFramebuffer()
{
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 @@ Int32 GenRenderbuffer()
{
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 @@ Int32 GenTexture()
{
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 @@ bool GetBoolean(OpenTK.Graphics.ES20.GetPName pname)
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 @@ Single GetFloat(OpenTK.Graphics.ES20.GetPName pname)
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 @@ Int32 GetInteger(OpenTK.Graphics.ES20.GetPName pname)
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
View
9 Source/OpenTK/Graphics/ES20/Helper.cs
@@ -362,15 +362,6 @@ public static void DrawElements(BeginMode mode, int count, DrawElementsType type
#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)
View
568 Source/OpenTK/Graphics/ES30/ES30.cs
@@ -6608,6 +6608,71 @@ void DebugMessageInsert(OpenTK.Graphics.ES30.DebugSourceExternal source, OpenTK.
/// </param>
[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
+ }
+
+ /// <summary>[requires: v2.0 and ES_VERSION_2_0]
+ /// Delete named buffer objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of buffer objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="buffers">
+ /// <para>
+ /// Specifies an array of buffer objects to be deleted.
+ /// </para>
+ /// </param>
+ [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
+ }
+
+ /// <summary>[requires: v2.0 and ES_VERSION_2_0]
+ /// Delete named buffer objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of buffer objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="buffers">
+ /// <para>
+ /// Specifies an array of buffer objects to be deleted.
+ /// </para>
+ /// </param>
+ [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glDeleteBuffers")]
+ public static
void DeleteBuffers(Int32 n, Int32[] buffers)
{
#if DEBUG
@@ -6798,6 +6863,71 @@ unsafe void DeleteBuffers(Int32 n, UInt32* buffers)
/// </param>
[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
+ }
+
+ /// <summary>[requires: v2.0 and ES_VERSION_2_0]
+ /// Delete framebuffer objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of framebuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="framebuffers">
+ /// <para>
+ /// A pointer to an array containing n framebuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ [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
+ }
+
+ /// <summary>[requires: v2.0 and ES_VERSION_2_0]
+ /// Delete framebuffer objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of framebuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="framebuffers">
+ /// <para>
+ /// A pointer to an array containing n framebuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glDeleteFramebuffers")]
+ public static
void DeleteFramebuffers(Int32 n, Int32[] framebuffers)
{
#if DEBUG
@@ -7033,6 +7163,71 @@ void DeleteProgram(UInt32 program)
/// </param>
[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
+ }
+
+ /// <summary>[requires: v3.0 and ES_VERSION_3_0]
+ /// Delete named query objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of query objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="ids">
+ /// <para>
+ /// Specifies an array of query objects to be deleted.
+ /// </para>
+ /// </param>
+ [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
+ }
+
+ /// <summary>[requires: v3.0 and ES_VERSION_3_0]
+ /// Delete named query objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of query objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="ids">
+ /// <para>
+ /// Specifies an array of query objects to be deleted.
+ /// </para>
+ /// </param>
+ [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteQueries")]
+ public static
void DeleteQueries(Int32 n, Int32[] ids)
{
#if DEBUG
@@ -7223,6 +7418,71 @@ unsafe void DeleteQueries(Int32 n, UInt32* ids)
/// </param>
[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
+ }
+
+ /// <summary>[requires: v2.0 and ES_VERSION_2_0]
+ /// Delete renderbuffer objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of renderbuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="renderbuffers">
+ /// <para>
+ /// A pointer to an array containing n renderbuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ [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
+ }
+
+ /// <summary>[requires: v2.0 and ES_VERSION_2_0]
+ /// Delete renderbuffer objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of renderbuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="renderbuffers">
+ /// <para>
+ /// A pointer to an array containing n renderbuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glDeleteRenderbuffers")]
+ public static
void DeleteRenderbuffers(Int32 n, Int32[] renderbuffers)
{
#if DEBUG
@@ -7413,6 +7673,71 @@ unsafe void DeleteRenderbuffers(Int32 n, UInt32* renderbuffers)
/// </param>
[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
+ }
+
+ /// <summary>[requires: v3.0 and ES_VERSION_3_0]
+ /// Delete named sampler objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of sampler objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="samplers">
+ /// <para>
+ /// Specifies an array of sampler objects to be deleted.
+ /// </para>
+ /// </param>
+ [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
+ }
+
+ /// <summary>[requires: v3.0 and ES_VERSION_3_0]
+ /// Delete named sampler objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of sampler objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="samplers">
+ /// <para>
+ /// Specifies an array of sampler objects to be deleted.
+ /// </para>
+ /// </param>
+ [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteSamplers")]
+ public static
void DeleteSamplers(Int32 count, Int32[] samplers)
{
#if DEBUG
@@ -7670,6 +7995,71 @@ void DeleteSync(IntPtr sync)
/// </param>
[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
+ }
+
+ /// <summary>[requires: v2.0 and ES_VERSION_2_0]
+ /// Delete named textures
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of textures to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="textures">
+ /// <para>
+ /// Specifies an array of textures to be deleted.
+ /// </para>
+ /// </param>
+ [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
+ }
+
+ /// <summary>[requires: v2.0 and ES_VERSION_2_0]
+ /// Delete named textures
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of textures to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="textures">
+ /// <para>
+ /// Specifies an array of textures to be deleted.
+ /// </para>
+ /// </param>
+ [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glDeleteTextures")]
+ public static
void DeleteTextures(Int32 n, Int32[] textures)
{
#if DEBUG
@@ -7860,6 +8250,71 @@ unsafe void DeleteTextures(Int32 n, UInt32* textures)
/// </param>
[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
+ }
+
+ /// <summary>[requires: v3.0 and ES_VERSION_3_0]
+ /// Delete transform feedback objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of transform feedback objects to delete.
+ /// </para>
+ /// </param>
+ /// <param name="ids">
+ /// <para>
+ /// Specifies an array of names of transform feedback objects to delete.
+ /// </para>
+ /// </param>
+ [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
+ }
+
+ /// <summary>[requires: v3.0 and ES_VERSION_3_0]
+ /// Delete transform feedback objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of transform feedback objects to delete.
+ /// </para>
+ /// </param>
+ /// <param name="ids">
+ /// <para>
+ /// Specifies an array of names of transform feedback objects to delete.
+ /// </para>
+ /// </param>
+ [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteTransformFeedbacks")]
+ public static
void DeleteTransformFeedbacks(Int32 n, Int32[] ids)
{
#if DEBUG
@@ -8050,6 +8505,71 @@ unsafe void DeleteTransformFeedbacks(Int32 n, UInt32* ids)
/// </param>
[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
+ }
+
+ /// <summary>[requires: v3.0 and ES_VERSION_3_0]
+ /// Delete vertex array objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of vertex array objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="arrays">
+ /// <para>
+ /// Specifies the address of an array containing the n names of the objects to be deleted.
+ /// </para>
+ /// </param>
+ [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
+ }
+
+ /// <summary>[requires: v3.0 and ES_VERSION_3_0]
+ /// Delete vertex array objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of vertex array objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="arrays">
+ /// <para>
+ /// Specifies the address of an array containing the n names of the objects to be deleted.
+ /// </para>
+ /// </param>
+ [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteVertexArrays")]
+ public static
void DeleteVertexArrays(Int32 n, Int32[] arrays)
{
#if DEBUG
@@ -10011,8 +10531,8 @@ Int32 GenBuffer()
{
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 @@ Int32 GenFramebuffer()
{
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 @@ Int32 GenQuery()
{
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 @@ Int32 GenRenderbuffer()
{
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 @@ Int32 GenSampler()
{
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 @@ Int32 GenTexture()
{
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 @@ Int32 GenTransformFeedback()
{
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 @@ Int32 GenVertexArray()
{
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 @@ bool GetBoolean(OpenTK.Graphics.ES30.GetPName pname)
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 @@ Single GetFloat(OpenTK.Graphics.ES30.GetPName pname)
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 @@ Int64 GetInteger64(OpenTK.Graphics.ES30.GetPName pname)
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 @@ Int32 GetInteger(OpenTK.Graphics.ES30.GetPName pname)
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
View
9 Source/OpenTK/Graphics/ES30/Helper.cs
@@ -353,15 +353,6 @@ public static void VertexAttribPointer(uint index, int size, VertexAttribPointer
#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)
View
677 Source/OpenTK/Graphics/OpenGL/GL.cs
@@ -51216,6 +51216,71 @@ void DebugMessageInsert(OpenTK.Graphics.OpenGL.DebugSourceExternal source, OpenT
/// </param>
[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
+ }
+
+ /// <summary>[requires: v1.5]
+ /// Delete named buffer objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of buffer objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="buffers">
+ /// <para>
+ /// Specifies an array of buffer objects to be deleted.
+ /// </para>
+ /// </param>
+ [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
+ }
+
+ /// <summary>[requires: v1.5]
+ /// Delete named buffer objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of buffer objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="buffers">
+ /// <para>
+ /// Specifies an array of buffer objects to be deleted.
+ /// </para>
+ /// </param>
+ [AutoGenerated(Category = "VERSION_1_5", Version = "1.5", EntryPoint = "glDeleteBuffers")]
+ public static
void DeleteBuffers(Int32 n, Int32[] buffers)
{
#if DEBUG
@@ -51406,6 +51471,71 @@ unsafe void DeleteBuffers(Int32 n, UInt32* buffers)
/// </param>
[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
+ }
+
+ /// <summary>[requires: v3.0 and ARB_framebuffer_object|VERSION_3_0]
+ /// Delete framebuffer objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of framebuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="framebuffers">
+ /// <para>
+ /// A pointer to an array containing n framebuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ [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
+ }
+
+ /// <summary>[requires: v3.0 and ARB_framebuffer_object|VERSION_3_0]
+ /// Delete framebuffer objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of framebuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="framebuffers">
+ /// <para>
+ /// A pointer to an array containing n framebuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ [AutoGenerated(Category = "ARB_framebuffer_object|VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteFramebuffers")]
+ public static
void DeleteFramebuffers(Int32 n, Int32[] framebuffers)
{
#if DEBUG
@@ -51696,6 +51826,71 @@ void DeleteProgram(UInt32 program)
/// </param>
[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
+ }
+
+ /// <summary>[requires: v4.1 and ARB_separate_shader_objects|VERSION_4_1]
+ /// Delete program pipeline objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of program pipeline objects to delete.
+ /// </para>
+ /// </param>
+ /// <param name="pipelines">
+ /// <para>
+ /// Specifies an array of names of program pipeline objects to delete.
+ /// </para>
+ /// </param>
+ [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
+ }
+
+ /// <summary>[requires: v4.1 and ARB_separate_shader_objects|VERSION_4_1]
+ /// Delete program pipeline objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of program pipeline objects to delete.
+ /// </para>
+ /// </param>
+ /// <param name="pipelines">
+ /// <para>
+ /// Specifies an array of names of program pipeline objects to delete.
+ /// </para>
+ /// </param>
+ [AutoGenerated(Category = "ARB_separate_shader_objects|VERSION_4_1", Version = "4.1", EntryPoint = "glDeleteProgramPipelines")]
+ public static
void DeleteProgramPipelines(Int32 n, Int32[] pipelines)
{
#if DEBUG
@@ -51886,6 +52081,71 @@ unsafe void DeleteProgramPipelines(Int32 n, UInt32* pipelines)
/// </param>
[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
+ }
+
+ /// <summary>[requires: v1.5]
+ /// Delete named query objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of query objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="ids">
+ /// <para>
+ /// Specifies an array of query objects to be deleted.
+ /// </para>
+ /// </param>
+ [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
+ }
+
+ /// <summary>[requires: v1.5]
+ /// Delete named query objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of query objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="ids">
+ /// <para>
+ /// Specifies an array of query objects to be deleted.
+ /// </para>
+ /// </param>
+ [AutoGenerated(Category = "VERSION_1_5", Version = "1.5", EntryPoint = "glDeleteQueries")]
+ public static
void DeleteQueries(Int32 n, Int32[] ids)
{
#if DEBUG
@@ -52076,7 +52336,7 @@ unsafe void DeleteQueries(Int32 n, UInt32* ids)
/// </param>
[AutoGenerated(Category = "ARB_framebuffer_object|VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteRenderbuffers")]
public static
- void DeleteRenderbuffers(Int32 n, Int32[] renderbuffers)
+ void DeleteRenderbuffer(Int32 renderbuffers)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -52084,10 +52344,9 @@ void DeleteRenderbuffers(Int32 n, Int32[] renderbuffers)
#endif
unsafe
{
- fixed (Int32* renderbuffers_ptr = renderbuffers)
- {
- Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr);
- }
+ const Int32 n = 1;
+ UInt32* renderbuffers_ptr = (UInt32*)&renderbuffers;
+ Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr);
}
#if DEBUG
}
@@ -52107,9 +52366,10 @@ void DeleteRenderbuffers(Int32 n, Int32[] renderbuffers)
/// A pointer to an array containing n renderbuffer objects to be deleted.
/// </para>
/// </param>
+ [System.CLSCompliant(false)]
[AutoGenerated(Category = "ARB_framebuffer_object|VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteRenderbuffers")]
public static
- void DeleteRenderbuffers(Int32 n, ref Int32 renderbuffers)
+ void DeleteRenderbuffer(UInt32 renderbuffers)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@@ -52117,10 +52377,9 @@ void DeleteRenderbuffers(Int32 n, ref Int32 renderbuffers)
#endif
unsafe
{
- fixed (Int32* renderbuffers_ptr = &renderbuffers)
- {
- Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr);
- }
+ const Int32 n = 1;
+ UInt32* renderbuffers_ptr = (UInt32*)&renderbuffers;
+ Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr);
}
#if DEBUG
}
@@ -52140,19 +52399,85 @@ void DeleteRenderbuffers(Int32 n, ref Int32 renderbuffers)
/// A pointer to an array containing n renderbuffer objects to be deleted.
/// </para>
/// </param>
- [System.CLSCompliant(false)]
[AutoGenerated(Category = "ARB_framebuffer_object|VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteRenderbuffers")]
public static
- unsafe void DeleteRenderbuffers(Int32 n, Int32* renderbuffers)
+ void DeleteRenderbuffers(Int32 n, Int32[] renderbuffers)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
- Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers);
- #if DEBUG
- }
- #endif
+ unsafe
+ {
+ fixed (Int32* renderbuffers_ptr = renderbuffers)
+ {
+ Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ /// <summary>[requires: v3.0 and ARB_framebuffer_object|VERSION_3_0]
+ /// Delete renderbuffer objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of renderbuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="renderbuffers">
+ /// <para>
+ /// A pointer to an array containing n renderbuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ [AutoGenerated(Category = "ARB_framebuffer_object|VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteRenderbuffers")]
+ public static
+ void DeleteRenderbuffers(Int32 n, ref Int32 renderbuffers)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ unsafe
+ {
+ fixed (Int32* renderbuffers_ptr = &renderbuffers)
+ {
+ Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr);
+ }
+ }
+ #if DEBUG
+ }
+ #endif
+ }
+
+ /// <summary>[requires: v3.0 and ARB_framebuffer_object|VERSION_3_0]
+ /// Delete renderbuffer objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of renderbuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="renderbuffers">
+ /// <para>
+ /// A pointer to an array containing n renderbuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ [System.CLSCompliant(false)]
+ [AutoGenerated(Category = "ARB_framebuffer_object|VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteRenderbuffers")]
+ public static
+ unsafe void DeleteRenderbuffers(Int32 n, Int32* renderbuffers)
+ {
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
+ Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers);
+ #if DEBUG
+ }
+ #endif
}
/// <summary>[requires: v3.0 and ARB_framebuffer_object|VERSION_3_0]
@@ -52266,6 +52591,71 @@ unsafe void DeleteRenderbuffers(Int32 n, UInt32* renderbuffers)
/// </param>
[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
+ }
+
+ /// <summary>[requires: v3.3 and ARB_sampler_objects|VERSION_3_3]
+ /// Delete named sampler objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of sampler objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="samplers">
+ /// <para>
+ /// Specifies an array of sampler objects to be deleted.
+ /// </para>
+ /// </param>
+ [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
+ }
+
+ /// <summary>[requires: v3.3 and ARB_sampler_objects|VERSION_3_3]
+ /// Delete named sampler objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of sampler objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="samplers">
+ /// <para>
+ /// Specifies an array of sampler objects to be deleted.
+ /// </para>
+ /// </param>
+ [AutoGenerated(Category = "ARB_sampler_objects|VERSION_3_3", Version = "3.3", EntryPoint = "glDeleteSamplers")]
+ public static
void DeleteSamplers(Int32 count, Int32[] samplers)
{
#if DEBUG
@@ -52523,6 +52913,71 @@ void DeleteSync(IntPtr sync)
/// </param>
[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
+ }
+
+ /// <summary>[requires: v1.1]
+ /// Delete named textures
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of textures to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="textures">
+ /// <para>
+ /// Specifies an array of textures to be deleted.
+ /// </para>
+ /// </param>
+ [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
+ }
+
+ /// <summary>[requires: v1.1]
+ /// Delete named textures
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of textures to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="textures">
+ /// <para>
+ /// Specifies an array of textures to be deleted.
+ /// </para>
+ /// </param>
+ [AutoGenerated(Category = "VERSION_1_1", Version = "1.1", EntryPoint = "glDeleteTextures")]
+ public static
void DeleteTextures(Int32 n, Int32[] textures)
{
#if DEBUG
@@ -52713,6 +53168,71 @@ unsafe void DeleteTextures(Int32 n, UInt32* textures)
/// </param>
[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
+ }
+
+ /// <summary>[requires: v4.0 and ARB_transform_feedback2|VERSION_4_0]
+ /// Delete transform feedback objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of transform feedback objects to delete.
+ /// </para>
+ /// </param>
+ /// <param name="ids">
+ /// <para>
+ /// Specifies an array of names of transform feedback objects to delete.
+ /// </para>
+ /// </param>
+ [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
+ }
+
+ /// <summary>[requires: v4.0 and ARB_transform_feedback2|VERSION_4_0]
+ /// Delete transform feedback objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of transform feedback objects to delete.
+ /// </para>
+ /// </param>
+ /// <param name="ids">
+ /// <para>
+ /// Specifies an array of names of transform feedback objects to delete.
+ /// </para>
+ /// </param>
+ [AutoGenerated(Category = "ARB_transform_feedback2|VERSION_4_0", Version = "4.0", EntryPoint = "glDeleteTransformFeedbacks")]
+ public static
void DeleteTransformFeedbacks(Int32 n, Int32[] ids)
{
#if DEBUG
@@ -52903,6 +53423,71 @@ unsafe void DeleteTransformFeedbacks(Int32 n, UInt32* ids)
/// </param>
[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
+ }
+
+ /// <summary>[requires: v3.0 and ARB_vertex_array_object|VERSION_3_0]
+ /// Delete vertex array objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of vertex array objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="arrays">
+ /// <para>
+ /// Specifies the address of an array containing the n names of the objects to be deleted.
+ /// </para>
+ /// </param>
+ [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
+ }
+
+ /// <summary>[requires: v3.0 and ARB_vertex_array_object|VERSION_3_0]
+ /// Delete vertex array objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of vertex array objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="arrays">
+ /// <para>
+ /// Specifies the address of an array containing the n names of the objects to be deleted.
+ /// </para>
+ /// </param>
+ [AutoGenerated(Category = "ARB_vertex_array_object|VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteVertexArrays")]
+ public static
void DeleteVertexArrays(Int32 n, Int32[] arrays)
{
#if DEBUG
@@ -62344,8 +62929,8 @@ Int32 GenBuffer()
{
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 @@ Int32 GenFramebuffer()
{
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 @@ Int32 GenProgramPipeline()
{
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 @@ Int32 GenQuery()
{
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 @@ Int32 GenRenderbuffer()
{
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 @@ Int32 GenSampler()
{
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 @@ Int32 GenTexture()
{
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 @@ Int32 GenTransformFeedback()
{
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 @@ Int32 GenVertexArray()
{
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 @@ bool GetBoolean(OpenTK.Graphics.OpenGL.GetPName pname)
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 @@ Double GetDouble(OpenTK.Graphics.OpenGL.GetPName pname)
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 @@ Single GetFloat(OpenTK.Graphics.OpenGL.GetPName pname)
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 @@ Int64 GetInteger64(OpenTK.Graphics.OpenGL.All pname)
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 @@ Int32 GetInteger(OpenTK.Graphics.OpenGL.GetPName pname)
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 @@ Single GetPixelMap(OpenTK.Graphics.OpenGL.PixelMap map)
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
View
184 Source/OpenTK/Graphics/OpenGL/GLHelper.cs
@@ -934,190 +934,6 @@ public static void Rect(ref Rectangle rect)
#endregion
- #region DeleteBuffer
-
- /// <summary>[requires: v1.5]
- /// Deletes a single buffer object
- /// </summary>
- /// <param name="id">The buffer object to be deleted</param>
- public static void DeleteBuffer(int id)
- {
- DeleteBuffers(1, ref id);
- }
-
- /// <summary>[requires: v1.5]
- /// Deletes a single buffer object
- /// </summary>
- /// <param name="id">The buffer object to be deleted</param>
- [CLSCompliant(false)]
- public static void DeleteBuffer(uint id)
- {
- DeleteBuffers(1, ref id);
- }
-
- #endregion
-
- #region DeleteFramebuffer
-
- /// <summary>[requires: v3.0 and ARB_framebuffer_object]
- /// Deletes a single framebuffer object
- /// </summary>
- /// <param name="id">The framebuffer object to be deleted</param>
- public static void DeleteFramebuffer(int id)
- {
- DeleteFramebuffers(1, ref id);
- }
-
- /// <summary>[requires: v3.0 and ARB_framebuffer_object]
- /// Deletes a single framebuffer object
- /// </summary>
- /// <param name="id">The framebuffer object to be deleted</param>
- [CLSCompliant(false)]
- public static void DeleteFramebuffer(uint id)
- {
- DeleteFramebuffers(1, ref id);
- }
-
- #endregion
-
- #region DeleteProgramPipeline
-
- /// <summary>[requires: v4.1 and ARB_separate_shader_objects]
- /// Deletes a single program pipeline object
- /// </summary>
- /// <param name="id">The program pipeline object to be deleted</param>
- public static void DeleteProgramPipeline(int id)
- {
- DeleteProgramPipelines(1, ref id);
- }
-
- /// <summary>[requires: v4.1 and ARB_separate_shader_objects]
- /// Deletes a single program pipeline object
- /// </summary>
- /// <param name="id">The program pipeline object to be deleted</param>
- [CLSCompliant(false)]
- public static void DeleteProgramPipeline(uint id)
- {
- DeleteProgramPipelines(1, ref id);
- }
-
- #endregion
-
- #region DeleteRenderbuffer
-
- /// <summary>[requires: v3.0 and ARB_framebuffer_object]
- /// Deletes a single renderbuffer object
- /// </summary>
- /// <param name="id">The renderbuffer object to be deleted</param>
- public static void DeleteRenderbuffer(int id)
- {
- DeleteRenderbuffers(1, ref id);
- }
-
- /// <summary>[requires: v3.0 and ARB_framebuffer_object]
- /// Deletes a single renderbuffer object
- /// </summary>
- /// <param name="id">The renderbuffer object to be deleted</param>
- [CLSCompliant(false)]
- public static void DeleteRenderbuffer(uint id)
- {
- DeleteRenderbuffers(1, ref id);
- }
-
- #endregion
-
- #region DeleteSampler
-
- /// <summary>
- /// Deletes a single sampler object
- /// </summary>
- /// <param name="id">The sampler object to be deleted</param>
- public static void DeleteSampler(int id)
- {
- DeleteSamplers(1, ref id);
- }
-
- /// <summary>
- /// Deletes a single sampler object
- /// </summary>
- /// <param name="id">The sampler object to be deleted</param>
- [CLSCompliant(false)]
- public static void DeleteSampler(uint id)
- {
- DeleteSamplers(1, ref id);
- }
-
- #endregion
-
- #region DeleteTexture
-
- /// <summary>[requires: v1.1]
- /// Delete a single texture name
- /// </summary>
- /// <param name="id">The texture to be deleted</param>
- public static void DeleteTexture(int id)
- {
- DeleteTextures(1, ref id);
- }
-
- /// <summary>[requires: v1.1]
- /// Delete a single texture name
- /// </summary>
- /// <param name="id">The texture to be deleted</param>
- [CLSCompliant(false)]
- public static void DeleteTexture(uint id)
- {
- DeleteTextures(1, ref id);
- }
-
- #endregion
-
- #region DeleteTransformFeedback
-
- /// <summary>[requires: v1.2 and ARB_transform_feedback2]
- /// Deletes a single transform feedback object
- /// </summary>
- /// <param name="id">The transform feedback object to be deleted</param>
- public static void DeleteTransformFeedback(int id)
- {
- DeleteTransformFeedbacks(1, ref id);
- }
-
- /// <summary>[requires: v1.2 and ARB_transform_feedback2]
- /// Deletes a single transform feedback object
- /// </summary>
- /// <param name="id">The transform feedback object to be deleted</param>
- [CLSCompliant(false)]
- public static void DeleteTransformFeedback(uint id)
- {
- DeleteTransformFeedbacks(1, ref id);
- }
-
- #endregion
-
- #region DeleteVertexArray
-
- /// <summary>[requires: v3.0 and ARB_vertex_array_object]
- /// Deletes a single vertex array object
- /// </summary>
- /// <param name="id">The vertex array object to be deleted</param>
- public static void DeleteVertexArray(int id)
- {
- DeleteVertexArrays(1, ref id);
- }
-
- /// <summary>[requires: v3.0 and ARB_vertex_array_object]
- /// Deletes a single vertex array object
- /// </summary>
- /// <param name="id">The vertex array object to be deleted</param>
- [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)
View
673 Source/OpenTK/Graphics/OpenGL4/GL4.cs
@@ -16091,6 +16091,71 @@ void DebugMessageInsert(OpenTK.Graphics.OpenGL4.DebugSourceExternal source, Open
/// </param>
[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
+ }
+
+ /// <summary>[requires: v1.5]
+ /// Delete named buffer objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of buffer objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="buffers">
+ /// <para>
+ /// Specifies an array of buffer objects to be deleted.
+ /// </para>
+ /// </param>
+ [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
+ }
+
+ /// <summary>[requires: v1.5]
+ /// Delete named buffer objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of buffer objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="buffers">
+ /// <para>
+ /// Specifies an array of buffer objects to be deleted.
+ /// </para>
+ /// </param>
+ [AutoGenerated(Category = "VERSION_1_5", Version = "1.5", EntryPoint = "glDeleteBuffers")]
+ public static
void DeleteBuffers(Int32 n, Int32[] buffers)
{
#if DEBUG
@@ -16281,6 +16346,71 @@ unsafe void DeleteBuffers(Int32 n, UInt32* buffers)
/// </param>
[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
+ }
+
+ /// <summary>[requires: v3.0 and ARB_framebuffer_object|VERSION_3_0]
+ /// Delete framebuffer objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of framebuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="framebuffers">
+ /// <para>
+ /// A pointer to an array containing n framebuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ [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
+ }
+
+ /// <summary>[requires: v3.0 and ARB_framebuffer_object|VERSION_3_0]
+ /// Delete framebuffer objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of framebuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ /// <param name="framebuffers">
+ /// <para>
+ /// A pointer to an array containing n framebuffer objects to be deleted.
+ /// </para>
+ /// </param>
+ [AutoGenerated(Category = "ARB_framebuffer_object|VERSION_3_0", Version = "3.0", EntryPoint = "glDeleteFramebuffers")]
+ public static
void DeleteFramebuffers(Int32 n, Int32[] framebuffers)
{
#if DEBUG
@@ -16516,6 +16646,71 @@ void DeleteProgram(UInt32 program)
/// </param>
[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
+ }
+
+ /// <summary>[requires: v4.1 and ARB_separate_shader_objects|VERSION_4_1]
+ /// Delete program pipeline objects
+ /// </summary>
+ /// <param name="n">
+ /// <para>
+ /// Specifies the number of program pipeline objects to delete.
+ /// </para>
+ /// </param>
+ /// <param name="pipelines">
+ /// <para>
+ /// Specifies an array of names of program pipeline objects to delete.
+ /// </para>
+ /// </param>
+ [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 DE