void glBlitFramebuffer( GLint srcX0,
GLint srcY0,
GLint srcX1,
GLint srcY1,
GLint dstX0,
GLint dstY0,
GLint dstX1,
GLint dstY1,
GLbitfield mask,
GLenum filter);
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.
指定要读取的缓冲区,可以取GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT and GL_STENCIL_BUFFER_BIT。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.
指定伸缩变形时的插值方法,可以取GL_NEAREST or GL_LINEAR。