Added overloads for Gen* and Delete* functions with single objects as parameters.
This commit is contained in:
parent
4a62861dfc
commit
006ce7a14f
1 changed files with 346 additions and 1 deletions
|
@ -747,8 +747,237 @@ namespace OpenTK.Graphics.OpenGL
|
|||
|
||||
#endregion
|
||||
|
||||
#region GenBuffers
|
||||
|
||||
/// <summary>[requires: v1.5]
|
||||
/// Generates a single buffer object name
|
||||
/// </summary>
|
||||
/// <returns>The generated buffer object name</returns>
|
||||
public static int GenBuffers()
|
||||
{
|
||||
int id;
|
||||
GenBuffers(1, out id);
|
||||
return id;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region DeleteBuffers
|
||||
|
||||
/// <summary>[requires: v1.5]
|
||||
/// Deletes a single buffer object
|
||||
/// </summary>
|
||||
/// <param name="id">The buffer object to be deleted</param>
|
||||
public static void DeleteBuffers(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 DeleteBuffers(uint id)
|
||||
{
|
||||
DeleteBuffers(1, ref id);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region GenFramebuffers
|
||||
|
||||
/// <summary>[requires: v3.0 and ARB_framebuffer_object]
|
||||
/// Generates a single framebuffer object name
|
||||
/// </summary>
|
||||
/// <returns>The generated framebuffer object name</returns>
|
||||
public static int GenFramebuffers()
|
||||
{
|
||||
int id;
|
||||
GenFramebuffers(1, out id);
|
||||
return id;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region DeleteFramebuffers
|
||||
|
||||
/// <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 DeleteFramebuffers(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 DeleteFramebuffers(uint id)
|
||||
{
|
||||
DeleteFramebuffers(1, ref id);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region GenProgramPipelines
|
||||
|
||||
/// <summary>[requires: v4.1 and ARB_separate_shader_objects]
|
||||
/// Generates a single single pipeline object name
|
||||
/// </summary>
|
||||
/// <returns>The generated single pipeline object name</returns>
|
||||
public static int GenProgramPipelines()
|
||||
{
|
||||
int id;
|
||||
GenProgramPipelines(1, out id);
|
||||
return id;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region DeleteProgramPipelines
|
||||
|
||||
/// <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 DeleteProgramPipelines(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 DeleteProgramPipelines(uint id)
|
||||
{
|
||||
DeleteProgramPipelines(1, ref id);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region GenQueries
|
||||
|
||||
/// <summary>[requires: v1.5]
|
||||
/// Generates a single query object name
|
||||
/// </summary>
|
||||
/// <returns>The generated query object name</returns>
|
||||
public static int GenQueries()
|
||||
{
|
||||
int id;
|
||||
GenQueries(1, out id);
|
||||
return id;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region DeleteQueries
|
||||
|
||||
/// <summary>[requires: v1.5]
|
||||
/// Deletes a single query object
|
||||
/// </summary>
|
||||
/// <param name="id">The query object to be deleted</param>
|
||||
public static void DeleteQueries(int id)
|
||||
{
|
||||
DeleteQueries(1, ref id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a single query object
|
||||
/// </summary>
|
||||
/// <param name="id">The query object to be deleted</param>
|
||||
[CLSCompliant(false)]
|
||||
public static void DeleteQueries(uint id)
|
||||
{
|
||||
DeleteQueries(1, ref id);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region GenRenderbuffers
|
||||
|
||||
/// <summary>[requires: v3.0 and ARB_framebuffer_object]
|
||||
/// Generates a single renderbuffer object name
|
||||
/// </summary>
|
||||
/// <returns>The generated renderbuffer object name</returns>
|
||||
public static int GenRenderbuffers()
|
||||
{
|
||||
int id;
|
||||
GenRenderbuffers(1, out id);
|
||||
return id;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region DeleteRenderbuffers
|
||||
|
||||
/// <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 DeleteRenderbuffers(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 DeleteRenderbuffers(uint id)
|
||||
{
|
||||
DeleteRenderbuffers(1, ref id);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region GenSamplers
|
||||
|
||||
/// <summary>
|
||||
/// Generates a single sampler object name
|
||||
/// </summary>
|
||||
/// <returns>The generated sampler object name</returns>
|
||||
public static int GenSamplers()
|
||||
{
|
||||
int id;
|
||||
GenSamplers(1, out id);
|
||||
return id;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region DeleteSamplers
|
||||
|
||||
/// <summary>
|
||||
/// Deletes a single sampler object
|
||||
/// </summary>
|
||||
/// <param name="id">The sampler object to be deleted</param>
|
||||
public static void DeleteSamplers(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 DeleteSamplers(uint id)
|
||||
{
|
||||
DeleteSamplers(1, ref id);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region public static int GenTexture()
|
||||
|
||||
[Obsolete("Use GenTextures instead.")]
|
||||
public static int GenTexture()
|
||||
{
|
||||
int id;
|
||||
|
@ -760,11 +989,13 @@ namespace OpenTK.Graphics.OpenGL
|
|||
|
||||
#region DeleteTexture
|
||||
|
||||
[Obsolete("Use DeleteTextures instead.")]
|
||||
public static void DeleteTexture(int id)
|
||||
{
|
||||
DeleteTextures(1, ref id);
|
||||
}
|
||||
|
||||
|
||||
[Obsolete("Use DeleteTextures instead.")]
|
||||
[CLSCompliant(false)]
|
||||
public static void DeleteTexture(uint id)
|
||||
{
|
||||
|
@ -773,6 +1004,120 @@ namespace OpenTK.Graphics.OpenGL
|
|||
|
||||
#endregion
|
||||
|
||||
#region GenTextures
|
||||
|
||||
/// <summary>[requires: v1.1]
|
||||
/// Generate a single texture name
|
||||
/// </summary>
|
||||
/// <returns>The generated texture name</returns>
|
||||
public static int GenTextures()
|
||||
{
|
||||
int id;
|
||||
GenTextures(1, out id);
|
||||
return id;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region DeleteTextures
|
||||
|
||||
/// <summary>[requires: v1.1]
|
||||
/// Delete a single texture name
|
||||
/// </summary>
|
||||
/// <param name="id">The texture to be deleted</param>
|
||||
public static void DeleteTextures(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 DeleteTextures(uint id)
|
||||
{
|
||||
DeleteTextures(1, ref id);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region GenTransformFeedback
|
||||
|
||||
/// <summary>[requires: v1.2 and ARB_transform_feedback2]
|
||||
/// Generates a single transform feedback object name
|
||||
/// </summary>
|
||||
/// <returns>The generated transform feedback object name</returns>
|
||||
public static int GenTransformFeedback()
|
||||
{
|
||||
int id;
|
||||
GenTransformFeedback(1, out id);
|
||||
return 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)
|
||||
{
|
||||
DeleteTransformFeedback(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)
|
||||
{
|
||||
DeleteTransformFeedback(1, ref id);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region GenVertexArrays
|
||||
|
||||
/// <summary>[requires: v3.0 and ARB_vertex_array_object]
|
||||
/// Generates a single vertex array object name
|
||||
/// </summary>
|
||||
/// <returns>The generated vertex array object name</returns>
|
||||
public static int GenVertexArrays()
|
||||
{
|
||||
int id;
|
||||
GenVertexArrays(1, out id);
|
||||
return id;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region DeleteVertexArrays
|
||||
|
||||
/// <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 DeleteVertexArrays(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 DeleteVertexArrays(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)
|
||||
|
|
Loading…
Reference in a new issue