Use singular form for single-object overloads, because plural looks weird when generating a single name.

This commit is contained in:
the_fiddler 2012-04-04 11:10:28 +00:00
parent 006ce7a14f
commit 5304af3d28

View file

@ -747,13 +747,13 @@ namespace OpenTK.Graphics.OpenGL
#endregion #endregion
#region GenBuffers #region GenBuffer
/// <summary>[requires: v1.5] /// <summary>[requires: v1.5]
/// Generates a single buffer object name /// Generates a single buffer object name
/// </summary> /// </summary>
/// <returns>The generated buffer object name</returns> /// <returns>The generated buffer object name</returns>
public static int GenBuffers() public static int GenBuffer()
{ {
int id; int id;
GenBuffers(1, out id); GenBuffers(1, out id);
@ -762,13 +762,13 @@ namespace OpenTK.Graphics.OpenGL
#endregion #endregion
#region DeleteBuffers #region DeleteBuffer
/// <summary>[requires: v1.5] /// <summary>[requires: v1.5]
/// Deletes a single buffer object /// Deletes a single buffer object
/// </summary> /// </summary>
/// <param name="id">The buffer object to be deleted</param> /// <param name="id">The buffer object to be deleted</param>
public static void DeleteBuffers(int id) public static void DeleteBuffer(int id)
{ {
DeleteBuffers(1, ref id); DeleteBuffers(1, ref id);
} }
@ -778,20 +778,20 @@ namespace OpenTK.Graphics.OpenGL
/// </summary> /// </summary>
/// <param name="id">The buffer object to be deleted</param> /// <param name="id">The buffer object to be deleted</param>
[CLSCompliant(false)] [CLSCompliant(false)]
public static void DeleteBuffers(uint id) public static void DeleteBuffer(uint id)
{ {
DeleteBuffers(1, ref id); DeleteBuffers(1, ref id);
} }
#endregion #endregion
#region GenFramebuffers #region GenFramebuffer
/// <summary>[requires: v3.0 and ARB_framebuffer_object] /// <summary>[requires: v3.0 and ARB_framebuffer_object]
/// Generates a single framebuffer object name /// Generates a single framebuffer object name
/// </summary> /// </summary>
/// <returns>The generated framebuffer object name</returns> /// <returns>The generated framebuffer object name</returns>
public static int GenFramebuffers() public static int GenFramebuffer()
{ {
int id; int id;
GenFramebuffers(1, out id); GenFramebuffers(1, out id);
@ -800,13 +800,13 @@ namespace OpenTK.Graphics.OpenGL
#endregion #endregion
#region DeleteFramebuffers #region DeleteFramebuffer
/// <summary>[requires: v3.0 and ARB_framebuffer_object] /// <summary>[requires: v3.0 and ARB_framebuffer_object]
/// Deletes a single framebuffer object /// Deletes a single framebuffer object
/// </summary> /// </summary>
/// <param name="id">The framebuffer object to be deleted</param> /// <param name="id">The framebuffer object to be deleted</param>
public static void DeleteFramebuffers(int id) public static void DeleteFramebuffer(int id)
{ {
DeleteFramebuffers(1, ref id); DeleteFramebuffers(1, ref id);
} }
@ -816,20 +816,20 @@ namespace OpenTK.Graphics.OpenGL
/// </summary> /// </summary>
/// <param name="id">The framebuffer object to be deleted</param> /// <param name="id">The framebuffer object to be deleted</param>
[CLSCompliant(false)] [CLSCompliant(false)]
public static void DeleteFramebuffers(uint id) public static void DeleteFramebuffer(uint id)
{ {
DeleteFramebuffers(1, ref id); DeleteFramebuffers(1, ref id);
} }
#endregion #endregion
#region GenProgramPipelines #region GenProgramPipeline
/// <summary>[requires: v4.1 and ARB_separate_shader_objects] /// <summary>[requires: v4.1 and ARB_separate_shader_objects]
/// Generates a single single pipeline object name /// Generates a single single pipeline object name
/// </summary> /// </summary>
/// <returns>The generated single pipeline object name</returns> /// <returns>The generated single pipeline object name</returns>
public static int GenProgramPipelines() public static int GenProgramPipeline()
{ {
int id; int id;
GenProgramPipelines(1, out id); GenProgramPipelines(1, out id);
@ -838,13 +838,13 @@ namespace OpenTK.Graphics.OpenGL
#endregion #endregion
#region DeleteProgramPipelines #region DeleteProgramPipeline
/// <summary>[requires: v4.1 and ARB_separate_shader_objects] /// <summary>[requires: v4.1 and ARB_separate_shader_objects]
/// Deletes a single program pipeline object /// Deletes a single program pipeline object
/// </summary> /// </summary>
/// <param name="id">The program pipeline object to be deleted</param> /// <param name="id">The program pipeline object to be deleted</param>
public static void DeleteProgramPipelines(int id) public static void DeleteProgramPipeline(int id)
{ {
DeleteProgramPipelines(1, ref id); DeleteProgramPipelines(1, ref id);
} }
@ -854,20 +854,20 @@ namespace OpenTK.Graphics.OpenGL
/// </summary> /// </summary>
/// <param name="id">The program pipeline object to be deleted</param> /// <param name="id">The program pipeline object to be deleted</param>
[CLSCompliant(false)] [CLSCompliant(false)]
public static void DeleteProgramPipelines(uint id) public static void DeleteProgramPipeline(uint id)
{ {
DeleteProgramPipelines(1, ref id); DeleteProgramPipelines(1, ref id);
} }
#endregion #endregion
#region GenQueries #region GenQuery
/// <summary>[requires: v1.5] /// <summary>[requires: v1.5]
/// Generates a single query object name /// Generates a single query object name
/// </summary> /// </summary>
/// <returns>The generated query object name</returns> /// <returns>The generated query object name</returns>
public static int GenQueries() public static int GenQuery()
{ {
int id; int id;
GenQueries(1, out id); GenQueries(1, out id);
@ -876,13 +876,13 @@ namespace OpenTK.Graphics.OpenGL
#endregion #endregion
#region DeleteQueries #region DeleteQuery
/// <summary>[requires: v1.5] /// <summary>[requires: v1.5]
/// Deletes a single query object /// Deletes a single query object
/// </summary> /// </summary>
/// <param name="id">The query object to be deleted</param> /// <param name="id">The query object to be deleted</param>
public static void DeleteQueries(int id) public static void DeleteQuery(int id)
{ {
DeleteQueries(1, ref id); DeleteQueries(1, ref id);
} }
@ -892,20 +892,20 @@ namespace OpenTK.Graphics.OpenGL
/// </summary> /// </summary>
/// <param name="id">The query object to be deleted</param> /// <param name="id">The query object to be deleted</param>
[CLSCompliant(false)] [CLSCompliant(false)]
public static void DeleteQueries(uint id) public static void DeleteQuery(uint id)
{ {
DeleteQueries(1, ref id); DeleteQueries(1, ref id);
} }
#endregion #endregion
#region GenRenderbuffers #region GenRenderbuffer
/// <summary>[requires: v3.0 and ARB_framebuffer_object] /// <summary>[requires: v3.0 and ARB_framebuffer_object]
/// Generates a single renderbuffer object name /// Generates a single renderbuffer object name
/// </summary> /// </summary>
/// <returns>The generated renderbuffer object name</returns> /// <returns>The generated renderbuffer object name</returns>
public static int GenRenderbuffers() public static int GenRenderbuffer()
{ {
int id; int id;
GenRenderbuffers(1, out id); GenRenderbuffers(1, out id);
@ -914,13 +914,13 @@ namespace OpenTK.Graphics.OpenGL
#endregion #endregion
#region DeleteRenderbuffers #region DeleteRenderbuffer
/// <summary>[requires: v3.0 and ARB_framebuffer_object] /// <summary>[requires: v3.0 and ARB_framebuffer_object]
/// Deletes a single renderbuffer object /// Deletes a single renderbuffer object
/// </summary> /// </summary>
/// <param name="id">The renderbuffer object to be deleted</param> /// <param name="id">The renderbuffer object to be deleted</param>
public static void DeleteRenderbuffers(int id) public static void DeleteRenderbuffer(int id)
{ {
DeleteRenderbuffers(1, ref id); DeleteRenderbuffers(1, ref id);
} }
@ -930,20 +930,20 @@ namespace OpenTK.Graphics.OpenGL
/// </summary> /// </summary>
/// <param name="id">The renderbuffer object to be deleted</param> /// <param name="id">The renderbuffer object to be deleted</param>
[CLSCompliant(false)] [CLSCompliant(false)]
public static void DeleteRenderbuffers(uint id) public static void DeleteRenderbuffer(uint id)
{ {
DeleteRenderbuffers(1, ref id); DeleteRenderbuffers(1, ref id);
} }
#endregion #endregion
#region GenSamplers #region GenSampler
/// <summary> /// <summary>
/// Generates a single sampler object name /// Generates a single sampler object name
/// </summary> /// </summary>
/// <returns>The generated sampler object name</returns> /// <returns>The generated sampler object name</returns>
public static int GenSamplers() public static int GenSampler()
{ {
int id; int id;
GenSamplers(1, out id); GenSamplers(1, out id);
@ -952,13 +952,13 @@ namespace OpenTK.Graphics.OpenGL
#endregion #endregion
#region DeleteSamplers #region DeleteSampler
/// <summary> /// <summary>
/// Deletes a single sampler object /// Deletes a single sampler object
/// </summary> /// </summary>
/// <param name="id">The sampler object to be deleted</param> /// <param name="id">The sampler object to be deleted</param>
public static void DeleteSamplers(int id) public static void DeleteSampler(int id)
{ {
DeleteSamplers(1, ref id); DeleteSamplers(1, ref id);
} }
@ -968,16 +968,19 @@ namespace OpenTK.Graphics.OpenGL
/// </summary> /// </summary>
/// <param name="id">The sampler object to be deleted</param> /// <param name="id">The sampler object to be deleted</param>
[CLSCompliant(false)] [CLSCompliant(false)]
public static void DeleteSamplers(uint id) public static void DeleteSampler(uint id)
{ {
DeleteSamplers(1, ref id); DeleteSamplers(1, ref id);
} }
#endregion #endregion
#region public static int GenTexture() #region GenTexture
[Obsolete("Use GenTextures instead.")] /// <summary>[requires: v1.1]
/// Generate a single texture name
/// </summary>
/// <returns>The generated texture name</returns>
public static int GenTexture() public static int GenTexture()
{ {
int id; int id;
@ -989,13 +992,19 @@ namespace OpenTK.Graphics.OpenGL
#region DeleteTexture #region DeleteTexture
[Obsolete("Use DeleteTextures instead.")] /// <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) public static void DeleteTexture(int id)
{ {
DeleteTextures(1, ref id); DeleteTextures(1, ref id);
} }
[Obsolete("Use DeleteTextures instead.")] /// <summary>[requires: v1.1]
/// Delete a single texture name
/// </summary>
/// <param name="id">The texture to be deleted</param>
[CLSCompliant(false)] [CLSCompliant(false)]
public static void DeleteTexture(uint id) public static void DeleteTexture(uint id)
{ {
@ -1004,44 +1013,6 @@ namespace OpenTK.Graphics.OpenGL
#endregion #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 #region GenTransformFeedback
/// <summary>[requires: v1.2 and ARB_transform_feedback2] /// <summary>[requires: v1.2 and ARB_transform_feedback2]
@ -1080,13 +1051,13 @@ namespace OpenTK.Graphics.OpenGL
#endregion #endregion
#region GenVertexArrays #region GenVertexArray
/// <summary>[requires: v3.0 and ARB_vertex_array_object] /// <summary>[requires: v3.0 and ARB_vertex_array_object]
/// Generates a single vertex array object name /// Generates a single vertex array object name
/// </summary> /// </summary>
/// <returns>The generated vertex array object name</returns> /// <returns>The generated vertex array object name</returns>
public static int GenVertexArrays() public static int GenVertexArray()
{ {
int id; int id;
GenVertexArrays(1, out id); GenVertexArrays(1, out id);
@ -1095,13 +1066,13 @@ namespace OpenTK.Graphics.OpenGL
#endregion #endregion
#region DeleteVertexArrays #region DeleteVertexArray
/// <summary>[requires: v3.0 and ARB_vertex_array_object] /// <summary>[requires: v3.0 and ARB_vertex_array_object]
/// Deletes a single vertex array object /// Deletes a single vertex array object
/// </summary> /// </summary>
/// <param name="id">The vertex array object to be deleted</param> /// <param name="id">The vertex array object to be deleted</param>
public static void DeleteVertexArrays(int id) public static void DeleteVertexArray(int id)
{ {
DeleteVertexArrays(1, ref id); DeleteVertexArrays(1, ref id);
} }
@ -1111,7 +1082,7 @@ namespace OpenTK.Graphics.OpenGL
/// </summary> /// </summary>
/// <param name="id">The vertex array object to be deleted</param> /// <param name="id">The vertex array object to be deleted</param>
[CLSCompliant(false)] [CLSCompliant(false)]
public static void DeleteVertexArrays(uint id) public static void DeleteVertexArray(uint id)
{ {
DeleteVertexArrays(1, ref id); DeleteVertexArrays(1, ref id);
} }