How to scroll back buffer?

Hello!

I need to scroll back buffer, i.e. to copy pixels from one rect to another in the same buffer and the rects can overlap.

I can’t use glCopyPixels, because pixels are always copied in row order from the lowest to the highest row, left to right in each row and if the rects overlap the result is incorrect.

You’ll need an intermediate buffer to store the rectangle-to-be-copied. This could be a texture, but if all you need is a blit then a buffer region might be faster (see http://oss.sgi.com/projects/ogl-sample/registry/ARB/wgl_buffer_region.txt ).

BTW, this question is probably more appropriate in the beginner’s forum .

Thank you for reply. I’l try to use WGL_BUFFER_REGION and measure it perfomance.
Is it possible to scroll back buffer with only one blit and without time-expensive operations?(e.g. in DirectX7 it is)