glBlitFramebuffer¶
copy a block of pixels from one framebuffer object to another
function glBlitFramebuffer(int $srcX0, int $srcY0, int $srcX1, int $srcY1, int $dstX0, int $dstY0, int $dstX1, int $dstY1, int $mask, int $filter) : void
- arguments
-
int
$srcX0
Specify the bounds of the source rectangle within the read buffer of the read framebuffer.int
$srcY0
int
$srcX1
int
$srcY1
int
$dstX0
Specify the bounds of the destination rectangle within the write buffer of the write framebuffer.int
$dstY0
int
$dstX1
int
$dstY1
int
$mask
The bitwise OR of the flags indicating which buffers are to be copied. The allowed flags areGL_COLOR_BUFFER_BIT ,GL_DEPTH_BUFFER_BIT andGL_STENCIL_BUFFER_BIT .int
$filter
Specifies the interpolation to be applied if the image is stretched. Must beGL_NEAREST orGL_LINEAR .
- returns
-
void
Copyright © 2010-2014 Khronos Group
This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. https://opencontent.org/openpub/.