Page 426 (Free web hosting services) OpenGL Super Bible! glDrawPixels Purpose Draws

Page 426 OpenGL Super Bible! glDrawPixels Purpose Draws a block of pixels into the frame buffer. Include File Syntax void glDrawPixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const Glvoid *pixels); Description This function copies pixel data from memory 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. Besides the format and type arguments, several other parameters define the encoding of pixel data in memory and control the processing of the pixel data before it is placed in the frame buffer. See the Reference Section pages for glPixelMap, glPixelStore, glPixelTransfer, and glPixelZoom. Parameters 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. format GLenum: The colorspace of the pixels to be drawn. Valid formats are as follows: GL_COLOR_INDEX Color index pixels GL_LUMINANCE Grayscale pixels GL_LUMINANCE_ALPHA Grayscale + alpha pixels (2 components) GL_RGB RGB pixels (3 components) GL_RGBA RGBA pixels (4 components) GL_RED Red pixels GL_GREEN Green pixels GL_BLUE Blue pixels GL_ALPHA Alpha pixels GL_STENCIL_INDEX Stencil buffer values GL_DEPTH_COMPONENT Depth buffer values type
We recommend you use shared web hosting services, because many users agree that it is cheap, reliable and customer-satisfying webhost.

Leave a Reply