   glReadPixels
  I first use glReadPixels to read the pixels into the memory.Then I use glDrawPixels to draw the pixels on the screen.But I find the color of the picture is just white and black.why?glColor3f(1.0,0.0,0.0);//////////redglBegin();//////////////draw the graphicsglVertex3f();...glEnd();glReadPixels();glDrawPixels();glSwapBuffers();   
Quote:Original post by dasan11I first use glReadPixels to read the pixels into the memory.Then I use glDrawPixels to draw the pixels on the screen.But I find the color of the picture is just white and black.why?glColor3f(1.0,0.0,0.0);//////////redglBegin();//////////////draw the graphicsglVertex3f();...glEnd();glReadPixels();glDrawPixels();glSwapBuffers();Because you're using weird functions that take no parameters.  Post your actual code (including parameters) and we might be able to see what's wrong.   ;  Hahahahaha, good response. You New Yorkers crack me up!   ;  You may not have correctly set your pixel transfer mode for either the capture of the buffer or the display of the buffer.  Just a thought.   