View Full Version : GL_PACK_ROW_LENGTH

08-22-2003, 12:05 PM
From the man page on glPixelStore*

"If the first pixel of a row is placed at
location p in memory, then the location of
the first pixel of the next row is obtained by skipping:

k = nl if s >= a"

"where n is the number of components or indices in a pixel, l is the number of pixels in a row" ... "s is the size, in bytes, of a single component"

In this case ( s >= a ) shouldn't 'k = nls' not just 'nl' ?

08-22-2003, 09:34 PM
k is the component index of the first pixel, not the byte-address of the first pixel. So the docs are right.


08-23-2003, 03:54 PM
Ah! I must watch my language!