Generate legacy overloads for VertexAttrib1fv

This commit is contained in:
Fraser Waters 2017-10-05 13:41:25 +01:00
parent e222486004
commit 7c85f82074
2 changed files with 10 additions and 7 deletions

View file

@ -5600,6 +5600,14 @@
</function> </function>
</overload> </overload>
<!-- gles2 replacements for backwards compatibility (2.0 only) -->
<replace name="gles2" version="2.0">
<!-- Khronos added count="1" to VertexAttrib1fv -->
<function name="VertexAttrib1fv">
<param name="v" legacyArrayParameter="true" />
</function>
</replace>
<!-- gles2 overloads for backwards compatibility (2.0 only) --> <!-- gles2 overloads for backwards compatibility (2.0 only) -->
<overload name="gles2" version="2.0"> <overload name="gles2" version="2.0">
<!-- PrimtiveType <=> BeginMode overloads for backwards compatibility --> <!-- PrimtiveType <=> BeginMode overloads for backwards compatibility -->
@ -5658,13 +5666,6 @@
<param name="format"><type>PixelFormat</type></param> <param name="format"><type>PixelFormat</type></param>
</function> </function>
<!-- Khronos added count="1" to VertexAttrib1fv -->
<function name="VertexAttrib1fv">
<param name="v">
<count>0</count>
</param>
</function>
<!-- generated by apitest --> <!-- generated by apitest -->
<function name="FramebufferRenderbuffer" obsolete="Use FramebufferAttachment overload instead"> <function name="FramebufferRenderbuffer" obsolete="Use FramebufferAttachment overload instead">
<param name="attachment"> <param name="attachment">

View file

@ -17061,6 +17061,7 @@ namespace OpenTK.Graphics.ES20
/// <param name="v">[length: 1] /// <param name="v">[length: 1]
/// Specifies the new values to be used for the specified vertex attribute. /// Specifies the new values to be used for the specified vertex attribute.
/// </param> /// </param>
[Obsolete("Use out overload instead")]
[AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glVertexAttrib1fv")] [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glVertexAttrib1fv")]
[CLSCompliant(false)] [CLSCompliant(false)]
public static void VertexAttrib1(Int32 index, [CountAttribute(Count = 1)] Single[] v) { throw new BindingsNotRewrittenException(); } public static void VertexAttrib1(Int32 index, [CountAttribute(Count = 1)] Single[] v) { throw new BindingsNotRewrittenException(); }
@ -17087,6 +17088,7 @@ namespace OpenTK.Graphics.ES20
/// <param name="v">[length: 1] /// <param name="v">[length: 1]
/// Specifies the new values to be used for the specified vertex attribute. /// Specifies the new values to be used for the specified vertex attribute.
/// </param> /// </param>
[Obsolete("Use out overload instead")]
[AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glVertexAttrib1fv")] [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glVertexAttrib1fv")]
[CLSCompliant(false)] [CLSCompliant(false)]
public static void VertexAttrib1(UInt32 index, [CountAttribute(Count = 1)] Single[] v) { throw new BindingsNotRewrittenException(); } public static void VertexAttrib1(UInt32 index, [CountAttribute(Count = 1)] Single[] v) { throw new BindingsNotRewrittenException(); }