rys
07-05-2004, 03:55 PM
I am trying to learn the concept of pixel manipulation within/between the front and back buffers. To do that I wrote a small program where
I
1. draw a triangle in the first quadrant of the back buffer
2. I swap the buffers (glSwapBuffers()
3. I (try to) copy the triangle from the front buffer's 1st quadrant to the the back buffer's second quadrant (inverted).
4. swap the buffers again
For some reason the copying process (glCopyPixels) copies the content UNDERNEATH the window (i.e the desktop) starting at the lower left
corner of the window (short program below).
I could not add the short program since the tool would not allow me. I will be glad to mail it to anyone.
Thx
I
1. draw a triangle in the first quadrant of the back buffer
2. I swap the buffers (glSwapBuffers()
3. I (try to) copy the triangle from the front buffer's 1st quadrant to the the back buffer's second quadrant (inverted).
4. swap the buffers again
For some reason the copying process (glCopyPixels) copies the content UNDERNEATH the window (i.e the desktop) starting at the lower left
corner of the window (short program below).
I could not add the short program since the tool would not allow me. I will be glad to mail it to anyone.
Thx