OpenGL Super Bible! Page 425 Reference Section glCopyPixels

OpenGL Super Bible! Page 425 Reference Section glCopyPixels Purpose Copies a rectangular block of pixels in the frame buffer. Include File Syntax void glCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type); Description This function copies pixel data from the indicated area in the framebuffer to the current raster position. Use glRasterPos to set the current raster position. If the current raster position is not valid, then no pixel data is copied. Calls to glPixelMap, glPixelTransfer, and glPixelZoom affect the operation of glCopyPixels, as indicated in their pages in this Reference Section. Parameters GLint: The lower-left corner window horizontal coordinate. y GLint: The lower-left corner window vertical coordinate. width GLsizei: The width of the image in pixels. height GLsizei: The height of the image in pixels. If negative, the image is drawn from top to bottom. By default, images are drawn bottom to top. type GLenum: The type of pixel values to be copied. Valid types are as follows: GL_COLOR Color buffer values GL_STENCIL Stencil buffer values GL_DEPTH Depth buffer values Returns None. Example See the example in CH11OGLVIEW.C. See Also glPixelMap, glPixelStore, glPixelTransfer, glPixelZoom
If you are looking for affordable and reliable webhost to host and run your business application visit our ftp web hosting services.

Leave a Reply