Kennith
11-30-2004, 02:42 PM
Hi,
Can anyone tell me if it is possible to call glDrawPixels where the pixels are not stored in contiguous rows in processor memory? (I can call glPixelStorei with GL_UNPACK_ROW_LENGTH where different rows are not contiguous but the pixels themselves are in contiguous blocks, row by row).
Just to clarify, in processor memory I have:
p0 b b b b b p1 b b b b b p2 b b b b b
p3 b b b b b p4 b b b b b p5 b b b b b
where b are buffer values (regular for a given image but ranging from 0 -> inf) and pN represent the desired image pixels, from which I want to draw the image:
p0 p1 p2
p3 p4 p5
by calling glDrawPixels(3, 2, format, type, &p0);
I am not sure if this is something that cannot be done (short of copying all the desired values to a single block of memory) or if there is some combination of GL states that can achieve this?
Thanks
:confused: K
Can anyone tell me if it is possible to call glDrawPixels where the pixels are not stored in contiguous rows in processor memory? (I can call glPixelStorei with GL_UNPACK_ROW_LENGTH where different rows are not contiguous but the pixels themselves are in contiguous blocks, row by row).
Just to clarify, in processor memory I have:
p0 b b b b b p1 b b b b b p2 b b b b b
p3 b b b b b p4 b b b b b p5 b b b b b
where b are buffer values (regular for a given image but ranging from 0 -> inf) and pN represent the desired image pixels, from which I want to draw the image:
p0 p1 p2
p3 p4 p5
by calling glDrawPixels(3, 2, format, type, &p0);
I am not sure if this is something that cannot be done (short of copying all the desired values to a single block of memory) or if there is some combination of GL states that can achieve this?
Thanks
:confused: K