Permalink
Browse files

Updated convenience overloads

  • Loading branch information...
1 parent d0e025b commit c66b22a1f3384eae32b0c29a780fdc71496650d4 @thefiddler committed Nov 10, 2013
@@ -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
Oops, something went wrong.

0 comments on commit c66b22a

Please sign in to comment.