glPixelStore

set pixel storage modes

Signature

glPixelStore( )->
glPixelStoref( GLenum ( pname ) , GLfloat ( param ) )-> void
glPixelStoref( pname , param )
glPixelStorei( GLenum ( pname ) , GLint ( param ) )-> void
glPixelStorei( pname , param )

Parameters

VariablesDescription
pname
Specifies the symbolic name of the parameter to be set. Six values affect the packing of pixel data into memory: GL_PACK_SWAP_BYTES , GL_PACK_LSB_FIRST , GL_PACK_ROW_LENGTH , GL_PACK_IMAGE_HEIGHT , GL_PACK_SKIP_PIXELS , GL_PACK_SKIP_ROWS , GL_PACK_SKIP_IMAGES , and GL_PACK_ALIGNMENT . Six more affect the unpacking of pixel data from memory: GL_UNPACK_SWAP_BYTES , GL_UNPACK_LSB_FIRST , GL_UNPACK_ROW_LENGTH , GL_UNPACK_IMAGE_HEIGHT , GL_UNPACK_SKIP_PIXELS , GL_UNPACK_SKIP_ROWS , GL_UNPACK_SKIP_IMAGES , and GL_UNPACK_ALIGNMENT .
param
Specifies the value that pname is set to.

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glPixelStorei
OpenGLContext tests/arbwindowpos.py Lines: 91, 92
OpenGLContext tests/glhistogram.py Lines: 48, 49
OpenGLContext tests/gldrawpixels.py Lines: 61, 62
OpenGLContext tests/dek_texturesurf.py Lines: 108
OpenGLContext tests/nehe7.py Lines: 99, 107, 115
OpenGLContext tests/nehe6_convolve.py Lines: 102
OpenGLContext tests/gldrawpixelssynth.py Lines: 41, 42
OpenGLContext tests/nehe8.py Lines: 133, 141, 149
OpenGLContext tests/readpixelsleak.py Lines: 56, 74
OpenGLContext tests/saveimage.py Lines: 102, 149
OpenGLContext tests/nehe6.py Lines: 52
OpenGLContext OpenGLContext/context.py Lines: 339
OpenGLContext OpenGLContext/texture.py Lines: 84, 86, 106, 108, 247, 248, 299, 301
OpenGLContext OpenGLContext/scenegraph/text/wxfont.py Lines: 89, 90
OpenGLContext OpenGLContext/scenegraph/text/pygamefont.py Lines: 67, 68
OpenGLContext OpenGLContext/debug/bufferimage.py Lines: 35, 65
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/conesave.py Lines: 33
OpenGL-Demo PyOpenGL-Demo/dek/tile.py Lines: 59
OpenGL-Demo PyOpenGL-Demo/tom/conesave.py Lines: 41
OpenGL-Demo PyOpenGL-Demo/redbook/drawf.py Lines: 74
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6.py Lines: 70
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson19.py Lines: 73
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson18.py Lines: 73
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6-multi.py Lines: 71
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson23.py Lines: 38
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson16.py Lines: 35
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson26.py Lines: 40
{LGPL} PyUI pyui/renderers/openglPygame.py Lines: 152, 276
{LGPL} PyUI pyui/renderers/openglGlut.py Lines: 208
{LGPL} PyUI2 renderers/openglPygame.py Lines: 155, 279
{LGPL} PyUI2 renderers/openglGlut.py Lines: 208
{LGPL} PyUI2 system/openglgraphics.py Lines: 225, 331
{LGPL} PyMT pymt/texture.py Lines: 19, 318
Visvis wobjects/textures.py Lines: 102