glCopyPixels

copy pixels in the frame buffer

Signature

glCopyPixels( GLint ( x ) , GLint ( y ) , GLsizei ( width ) , GLsizei ( height ) , GLenum ( type ) )-> void
glCopyPixels( x , y , width , height , type )

Parameters

VariablesDescription
x, y
Specify the window coordinates of the lower left corner of the rectangular region of pixels to be copied.
width, height
Specify the dimensions of the rectangular region of pixels to be copied. Both must be nonnegative.
type
Specifies whether color values, depth values, or stencil values are to be copied. Symbolic constants GL_COLOR , GL_DEPTH , and GL_STENCIL are accepted.