glReadPixels, glTexImage1D, glTexImage2D, glTexImage3D, glTexSubImage1D, glTexSubImage2D, glTexSubImage3D
Copyright 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.
Page generated by adrdox
glPixelStore: man3/glPixelStore.xml
glPixelStore sets pixel storage modes that affect the operation of subsequent glReadPixels as well as the unpacking of texture patterns (see glTexImage1D, glTexImage2D, glTexImage3D, glTexSubImage1D, glTexSubImage2D, glTexSubImage3D ). pname is a symbolic constant indicating the parameter to be set, and param is the new value. Six of the twelve storage parameters affect how pixel data is returned to client memory. They are as follows: The other six of the twelve storage parameters affect how pixel data is read from client memory. These values are significant for glTexImage1D, glTexImage2D, glTexImage3D, glTexSubImage1D, glTexSubImage2D, and glTexSubImage3D They are as follows: The following table gives the type, initial value, and range of valid values for each storage parameter that can be set with glPixelStore. pname Type Initial Value Valid Range GL_PACK_SWAP_BYTES boolean false true or false GL_PACK_LSB_FIRST boolean false true or false GL_PACK_ROW_LENGTH integer 0 0∞ GL_PACK_IMAGE_HEIGHT integer 0 0∞ GL_PACK_SKIP_ROWS integer 0 0∞ GL_PACK_SKIP_PIXELS integer 0 0∞ GL_PACK_SKIP_IMAGES integer 0 0∞ GL_PACK_ALIGNMENT integer 4 1, 2, 4, or 8 GL_UNPACK_SWAP_BYTES boolean false true or false GL_UNPACK_LSB_FIRST boolean false true or false GL_UNPACK_ROW_LENGTH integer 0 0∞ GL_UNPACK_IMAGE_HEIGHT integer 0 0∞ GL_UNPACK_SKIP_ROWS integer 0 0∞ GL_UNPACK_SKIP_PIXELS integer 0 0∞ GL_UNPACK_SKIP_IMAGES integer 0 0∞ GL_UNPACK_ALIGNMENT integer 4 1, 2, 4, or 8 glPixelStoref can be used to set any pixel store parameter. If the parameter type is boolean, then if param is 0, the parameter is false; otherwise it is set to true. If pname is a integer type parameter, param is rounded to the nearest integer. Likewise, glPixelStorei can also be used to set any of the pixel store parameters. Boolean parameters are set to false if param is 0 and true otherwise.