Merge pull request #57 from SeanColombo/master

Additional method signature to allow BlitFramebufferFilter enum instead of ExtFramebufferBlit enum.
This commit is contained in:
Ethan Lee 2014-05-01 11:56:08 -04:00
commit b4ccfe1c96
2 changed files with 41 additions and 2 deletions

View file

@ -114563,7 +114563,6 @@ namespace OpenTK.Graphics.OpenGL
#endif #endif
} }
/// <summary>[requires: EXT_framebuffer_blit] /// <summary>[requires: EXT_framebuffer_blit]
/// Copy a block of pixels from the read framebuffer to the draw framebuffer /// Copy a block of pixels from the read framebuffer to the draw framebuffer
/// </summary> /// </summary>
@ -114602,6 +114601,44 @@ namespace OpenTK.Graphics.OpenGL
} }
/// <summary>[requires: EXT_framebuffer_blit]
/// Copy a block of pixels from the read framebuffer to the draw framebuffer
/// </summary>
/// <param name="srcX0">
/// <para>
/// Specify the bounds of the source rectangle within the read buffer of the read framebuffer.
/// </para>
/// </param>
/// <param name="dstX0">
/// <para>
/// Specify the bounds of the destination rectangle within the write buffer of the write framebuffer.
/// </para>
/// </param>
/// <param name="mask">
/// <para>
/// The bitwise OR of the flags indicating which buffers are to be copied. The allowed flags are GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT and GL_STENCIL_BUFFER_BIT.
/// </para>
/// </param>
/// <param name="filter">
/// <para>
/// Specifies the interpolation to be applied if the image is stretched. Must be GL_NEAREST or GL_LINEAR.
/// </para>
/// </param>
[AutoGenerated(Category = "EXT_framebuffer_blit", Version = "1.5", EntryPoint = "glBlitFramebufferEXT")]
public static
void BlitFramebuffer(Int32 srcX0, Int32 srcY0, Int32 srcX1, Int32 srcY1, Int32 dstX0, Int32 dstY0, Int32 dstX1, Int32 dstY1, OpenTK.Graphics.OpenGL.ClearBufferMask mask, OpenTK.Graphics.OpenGL.BlitFramebufferFilter filter)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
Delegates.glBlitFramebufferEXT((Int32)srcX0, (Int32)srcY0, (Int32)srcX1, (Int32)srcY1, (Int32)dstX0, (Int32)dstY0, (Int32)dstX1, (Int32)dstY1, (OpenTK.Graphics.OpenGL.ClearBufferMask)mask, (OpenTK.Graphics.OpenGL.BlitFramebufferFilter)filter);
#if DEBUG
}
#endif
}
/// <summary>[requires: EXT_framebuffer_object] /// <summary>[requires: EXT_framebuffer_object]
/// Check the completeness status of a framebuffer /// Check the completeness status of a framebuffer
/// </summary> /// </summary>

View file

@ -370,6 +370,8 @@ namespace OpenTK.Graphics.OpenGL
internal static BlitFramebuffer glBlitFramebuffer; internal static BlitFramebuffer glBlitFramebuffer;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void BlitFramebufferEXT(Int32 srcX0, Int32 srcY0, Int32 srcX1, Int32 srcY1, Int32 dstX0, Int32 dstY0, Int32 dstX1, Int32 dstY1, OpenTK.Graphics.OpenGL.ClearBufferMask mask, OpenTK.Graphics.OpenGL.ExtFramebufferBlit filter); internal delegate void BlitFramebufferEXT(Int32 srcX0, Int32 srcY0, Int32 srcX1, Int32 srcY1, Int32 dstX0, Int32 dstY0, Int32 dstX1, Int32 dstY1, OpenTK.Graphics.OpenGL.ClearBufferMask mask, OpenTK.Graphics.OpenGL.ExtFramebufferBlit filter);
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void BlitFramebufferEXT(Int32 srcX0, Int32 srcY0, Int32 srcX1, Int32 srcY1, Int32 dstX0, Int32 dstY0, Int32 dstX1, Int32 dstY1, OpenTK.Graphics.OpenGL.ClearBufferMask mask, OpenTK.Graphics.OpenGL.BlitFramebufferFilter filter);
internal static BlitFramebufferEXT glBlitFramebufferEXT; internal static BlitFramebufferEXT glBlitFramebufferEXT;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void BufferAddressRangeNV(OpenTK.Graphics.OpenGL.NvVertexBufferUnifiedMemory pname, UInt32 index, UInt64 address, IntPtr length); internal delegate void BufferAddressRangeNV(OpenTK.Graphics.OpenGL.NvVertexBufferUnifiedMemory pname, UInt32 index, UInt64 address, IntPtr length);