glBlitFramebuffer

copy a block of pixels from the read framebuffer to the draw framebuffer

Signature

glBlitFramebuffer( GLint ( srcX0 ) , GLint ( srcY0 ) , GLint ( srcX1 ) , GLint ( srcY1 ) , GLint ( dstX0 ) , GLint ( dstY0 ) , GLint ( dstX1 ) , GLint ( dstY1 ) , GLbitfield ( mask ) , GLenum ( filter ) )-> void
glBlitFramebuffer( srcX0 , srcY0 , srcX1 , srcY1 , dstX0 , dstY0 , dstX1 , dstY1 , mask , filter )

Parameters

VariablesDescription
srcX0, srcY0, srcX1, srcY1
Specify the bounds of the source rectangle within the read buffer of the read framebuffer.
dstX0, dstY0, dstX1, dstY1
Specify the bounds of the destination rectangle within the write buffer of the write framebuffer.
mask
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 .
filter
Specifies the interpolation to be applied if the image is stretched. Must be GL_NEAREST or GL_LINEAR .